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

124.1 Files compared

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

124.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 2 500
Changed 1 2
Inserted 0 0
Removed 0 0

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

124.4 Active regular expressions

No regular expressions were active.

124.5 Comparison detail

  1   'use stric t';
  2  
  3   var valida tor = requ ire('./ord ers-common -validator ');
  4  
  5   describe(' write-back  orders co mmon valid ator', fun ction() {
  6       var ed itLabWrite backContex t;
  7       var de tailLabWri tebackCont ext;
  8       var di scontinueD etailsLabW ritebackCo ntext;
  9       var si gnDetailsL abWritebac kContext;
  10       var si gnLabWrite backContex t;
  11       var dr aftLabWrit ebackConte xt;
  12       var fi ndDraftWri tebackCont ext;
  13       var re adDraftWri tebackCont ext;
  14  
  15       before Each(funct ion() {
  16           ed itLabWrite backContex t = {};
  17           ed itLabWrite backContex t.resource Id = '1234 5';
  18           de tailLabWri tebackCont ext = {};
  19           de tailLabWri tebackCont ext.resour ceId = '45 678';
  20           de tailLabWri tebackCont ext.sitePa ram = '9E7 A';
  21           di scontinueD etailsLabW ritebackCo ntext = {
  22                model: {
  23                    'dfn ': '100716 ',
  24                    'pro vider': '1 000000000' ,
  25                    'ord erIds': [
  26                         '38965;1',
  27                         '38966;1'
  28                    ]
  29                },
  30                intercep torResults : {
  31                    pati entIdentif iers: {
  32                         siteDfn: ' 9E7A:10071 6',
  33                         site: '9E7 A',
  34                         dfn: '1007 16'
  35                    }
  36                }
  37           };
  38           si gnDetailsL abWritebac kContext =  {};
  39           si gnDetailsL abWritebac kContext.i nterceptor Results =  {
  40                patientI dentifiers : {
  41                    site Dfn: '9E7A :100716',
  42                    site : '9E7A',
  43                    dfn:  '100716'
  44                }
  45           };
  46           va r signDeta ilsLabMode l = {};
  47           si gnDetailsL abModel.df n = '10071 6';
  48           si gnDetailsL abModel.pr ovider = ' 1000000000 ';
  49           va r orderIds  = ['12345 ;1', '1234 6;1'];
  50           si gnDetailsL abModel.or derIds = o rderIds;
  51           si gnDetailsL abWritebac kContext.m odel = sig nDetailsLa bModel;
  52  
  53           si gnLabWrite backContex t = {
  54                model: {
  55                    'dfn ': '100716 ',
  56                    'pro vider': '1 000000000' ,
  57                    'loc ation': '2 85',
  58                      'eSig': ' PL      !!',
  59                    'ord erList': [ {
  60                         'orderId':  '38989;1' ,
  61                         'orderDeta ilHash': ' some hash  value'
  62                    }],
  63                    over rideReason : 'overrid e reason',
  64                    orde rCheckList : [{
  65                         orderCheck : '38989;1 ^11^2^Dupl icate orde r: HEMOGLO BIN A1C BL OOD   SP L B #18535 9 /29/15 [UN COLLECTED] '
  66                    }, {
  67                         orderCheck : '38989;1 ^24^2^Max  lab test o rder freq  exceeded f or: HEMOGL OBIN A1C'
  68                    }]
  69                },
  70                intercep torResults : {
  71                    pati entIdentif iers: {
  72                         siteDfn: ' 9E7A:10071 6',
  73                         site: '9E7 A',
  74                         dfn: '1007 16'
  75                    }
  76                }
  77           };
  78  
  79           dr aftLabWrit ebackConte xt = {
  80                model: {
  81                    uid:  'urn:va:e hmp-order: 9E7A;3:de3 05d54-75b4 -431b-adb2 -eb6b9e546 014',
  82                    pati entUid: '9 E7A;3',
  83                    ehmp State: 'dr aft',
  84                    auth orUid: 'ur n:va:user: 9E7A:123',
  85                    doma in: 'order ',
  86                    subD omain: 'la boratory',
  87                    visi t: {
  88                         location:  'urn:va:lo cation:9E7 A:1',
  89                         serviceCat egory: 'PS B',
  90                         dateTime:  '201601011 20000'
  91                    },
  92                    refe renceId: ' ',
  93                    data : {
  94                         labTestTex t: 'Gas Pa nel - Arte rial Cord' ,
  95                         labCollSam p: '999',
  96                         location:  '32',
  97                         specimen:  '8759'
  98                    }
  99                },
  100                intercep torResults : {
  101                    pati entIdentif iers: {
  102                         siteDfn: ' 9E7A:10071 6',
  103                         site: '9E7 A',
  104                         dfn: '1007 16'
  105                    }
  106                }
  107           };
  108  
  109           fi ndDraftWri tebackCont ext = {
  110                model: {
  111                    pati entUid: '9 E7A;100716 ',
  112                    auth orUid: 'So mething',
  113                    doma in: 'order ',
  114                    ehmp State: 'dr aft'
  115                },
  116                intercep torResults : {
  117                    pati entIdentif iers: {
  118                         siteDfn: ' 9E7A:10071 6',
  119                         site: '9E7 A',
  120                         dfn: '1007 16'
  121                    }
  122                }
  123           };
  124  
  125           re adDraftWri tebackCont ext = {
  126                resource Id: 'urn:v a:ehmp-ord er:9E7A;3: de305d54-7 5b4-431b-a db2-eb6b9e 546014'
  127           };
  128       });
  129  
  130       it('id entifies g ood edit r equest', f unction(do ne) {
  131           va lidator.ed itLab(edit LabWriteba ckContext,  function( err) {
  132                expect(e rr).to.be. falsy();
  133                done();
  134           }) ;
  135       });
  136  
  137       it('id entifies b ad edit re quest', fu nction(don e) {
  138           de lete editL abWritebac kContext.r esourceId;
  139           va lidator.ed itLab(edit LabWriteba ckContext,  function( err) {
  140                expect(e rr).to.be. truthy();
  141                done();
  142           }) ;
  143       });
  144  
  145       it('id entifies g ood detail  request',  function( done) {
  146           va lidator.de tailLab(de tailLabWri tebackCont ext, funct ion(err) {
  147                expect(e rr).to.be. falsy();
  148                done();
  149           }) ;
  150       });
  151  
  152       it('id entifies b ad detail  request',  function(d one) {
  153           de lete detai lLabWriteb ackContext .resourceI d;
  154           va lidator.de tailLab(de tailLabWri tebackCont ext, funct ion(err) {
  155                expect(e rr).to.be. truthy();
  156                done();
  157           }) ;
  158       });
  159  
  160       it('id entifies g ood discon tinue deta ils reques t', functi on(done) {
  161           va lidator.di scontinueD etailsLab( discontinu eDetailsLa bWriteback Context, f unction(er r) {
  162                expect(e rr).to.be. falsy();
  163                done();
  164           }) ;
  165       });
  166  
  167       it('id entifies b ad discont inue detai ls request ', functio n(done) {
  168           di scontinueD etailsLabW ritebackCo ntext.mode l.orderIds  = [];
  169           va lidator.di scontinueD etailsLab( discontinu eDetailsLa bWriteback Context, f unction(er r) {
  170                expect(e rr).to.be. truthy();
  171                done();
  172           }) ;
  173       });
  174  
  175       it('id entifies g ood sign d etails req uest', fun ction(done ) {
  176           va lidator.si gnDetailsL ab(signDet ailsLabWri tebackCont ext, funct ion(err) {
  177                expect(e rr).to.be. falsy();
  178                done();
  179           }) ;
  180       });
  181  
  182       it('id entifies b ad sign de tails requ est', func tion(done)  {
  183           si gnDetailsL abWritebac kContext.m odel.order Ids = [];
  184           va lidator.si gnDetailsL ab(signDet ailsLabWri tebackCont ext, funct ion(err) {
  185                expect(e rr).to.be. truthy();
  186                done();
  187           }) ;
  188       });
  189  
  190       it('id entifies g ood sign r equest', f unction(do ne) {
  191           va lidator.si gnOrdersLa b(signLabW ritebackCo ntext, fun ction(err)  {
  192                expect(e rr).to.be. falsy();
  193                done();
  194           }) ;
  195       });
  196  
  197       it('id entifies b ad sign re quest', fu nction(don e) {
  198           si gnLabWrite backContex t.model.or derList =  [];
  199           va lidator.si gnOrdersLa b(signLabW ritebackCo ntext, fun ction(err)  {
  200                expect(e rr).to.be. truthy();
  201                done();
  202           }) ;
  203       });
  204  
  205       it('id entifies g ood draft  request',  function(d one) {
  206           va lidator.sa veDraftLab Order(draf tLabWriteb ackContext , function (err) {
  207                expect(e rr).to.be. falsy();
  208                done();
  209           }) ;
  210       });
  211  
  212       it('id entifies b ad draft r equest', f unction(do ne) {
  213           dr aftLabWrit ebackConte xt.model.a uthorUid =  null;
  214           va lidator.sa veDraftLab Order(draf tLabWriteb ackContext , function (err) {
  215                expect(e rr).to.be. truthy();
  216                done();
  217           }) ;
  218       });
  219  
  220       it('id entifies g ood find d raft reque st', funct ion(done)  {
  221           va lidator.fi ndDraftOrd ers(findDr aftWriteba ckContext,  function( err) {
  222                expect(e rr).to.be. falsy();
  223                done();
  224           }) ;
  225       });
  226  
  227       it('id entifies b ad find dr aft reques t', functi on(done) {
  228           fi ndDraftWri tebackCont ext.model. patientUid  = null;
  229           va lidator.fi ndDraftOrd ers(findDr aftWriteba ckContext,  function( err) {
  230                console. log(err);
  231                expect(e rr).to.be. truthy();
  232                done();
  233           }) ;
  234       });
  235  
  236       it('id entifies g ood read d raft reque st', funct ion(done)  {
  237           va lidator.re adDraftOrd er(readDra ftWritebac kContext,  function(e rr) {
  238                expect(e rr).to.be. falsy();
  239                done();
  240           }) ;
  241       });
  242  
  243       it('id entifies b ad read dr aft reques t', functi on(done) {
  244           re adDraftWri tebackCont ext.resour ceId = nul l;
  245           va lidator.re adDraftOrd er(readDra ftWritebac kContext,  function(e rr) {
  246                console. log(err);
  247                expect(e rr).to.be. truthy();
  248                done();
  249           }) ;
  250       });
  251   });