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.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | rdk.zip\rdk\product\production\rdk\src\write\orders\common | orders-common-patient-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-patient-lock-itest-spec.js | Tue Oct 3 19:01:24 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 7 | 256 |
| Changed | 6 | 28 |
| Inserted | 0 | 0 |
| Removed | 0 | 0 |
| 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 |
No regular expressions were active.
| 1 | 'use stric t'; | |
| 2 | ||
| 3 | var lockPa tient = re quire('./o rders-comm on-patient -lock'); | |
| 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 | interc eptorResul ts: { | |
| 17 | pa tientIdent ifiers: { | |
| 18 | dfn: '10 0615' | |
| 19 | } | |
| 20 | }, | |
| 21 | model: { | |
| 22 | 'd fn': '1006 15', | |
| 23 | 'p rovider': '100000002 38', | |
| 24 | 'l ocation': '285', | |
| 25 | 'o rderDialog ': 'LR OTH ER LAB TES TS', | |
| 26 | 'd isplayGrou p': '5', | |
| 27 | 'q uickOrderD ialog': '2 ', | |
| 28 | 'i nputList': [{ | |
| 29 | 'inputKe y': '4', | |
| 30 | 'inputVa lue': '350 ' | |
| 31 | }, { | |
| 32 | 'inputKe y': '126', | |
| 33 | 'inputVa lue': '1' | |
| 34 | }, { | |
| 35 | 'inputKe y': '127', | |
| 36 | 'inputVa lue': '72' | |
| 37 | }, { | |
| 38 | 'inputKe y': '180', | |
| 39 | 'inputVa lue': '9' | |
| 40 | }, { | |
| 41 | 'inputKe y': '28', | |
| 42 | 'inputVa lue': 'SP' | |
| 43 | }, { | |
| 44 | 'inputKe y': '6', | |
| 45 | 'inputVa lue': 'TOD AY' | |
| 46 | }, { | |
| 47 | 'inputKe y': '29', | |
| 48 | 'inputVa lue': '28' | |
| 49 | }] , | |
| 50 | 'l ocalId': ' 12519', | |
| 51 | 'uid': 'ur n:va:order : R E D A CTED :100615:12 519', | |
| 52 | 'k ind': 'Lab oratory' | |
| 53 | }, | |
| 54 | logger : sinon.st ub(require ('bunyan') .createLog ger({ | |
| 55 | na me: 'patie nt-lock' | |
| 56 | })) | |
| 57 | }; | |
| 58 | ||
| 59 | var writeb ackContext 2 = { | |
| 60 | pid: ' R E D A CTED ;100615', | |
| 61 | vistaC onfig: { | |
| 62 | host: ' IP ', | |
| 63 | port: PORT , | |
| 64 | accessCode : ' REDACT ', | |
| 65 | verifyCode : ' REDACTED ', | |
| 66 | localIP: ' IP ', | |
| 67 | lo calAddress : 'localho st' | |
| 68 | }, | |
| 69 | interc eptorResul ts: { | |
| 70 | pa tientIdent ifiers: { | |
| 71 | dfn: '10 0615' | |
| 72 | } | |
| 73 | }, | |
| 74 | model: { | |
| 75 | 'd fn': '1006 15', | |
| 76 | 'p rovider': '100000002 38', | |
| 77 | 'l ocation': '285', | |
| 78 | 'o rderDialog ': 'LR OTH ER LAB TES TS', | |
| 79 | 'd isplayGrou p': '5', | |
| 80 | 'q uickOrderD ialog': '2 ', | |
| 81 | 'i nputList': [{ | |
| 82 | 'inputKe y': '4', | |
| 83 | 'inputVa lue': '350 ' | |
| 84 | }, { | |
| 85 | 'inputKe y': '126', | |
| 86 | 'inputVa lue': '1' | |
| 87 | }, { | |
| 88 | 'inputKe y': '127', | |
| 89 | 'inputVa lue': '72' | |
| 90 | }, { | |
| 91 | 'inputKe y': '180', | |
| 92 | 'inputVa lue': '9' | |
| 93 | }, { | |
| 94 | 'inputKe y': '28', | |
| 95 | 'inputVa lue': 'SP' | |
| 96 | }, { | |
| 97 | 'inputKe y': '6', | |
| 98 | 'inputVa lue': 'TOD AY' | |
| 99 | }, { | |
| 100 | 'inputKe y': '29', | |
| 101 | 'inputVa lue': '28' | |
| 102 | }] , | |
| 103 | 'l ocalId': ' 12519', | |
| 104 | 'uid': 'ur n:va:order : R E D A CTED :100615:12 519', | |
| 105 | 'k ind': 'Lab oratory' | |
| 106 | }, | |
| 107 | logger : sinon.st ub(require ('bunyan') .createLog ger({ | |
| 108 | na me: 'patie nt-lock' | |
| 109 | })) | |
| 110 | }; | |
| 111 | ||
| 112 | describe(' Checks the patient l ock functi onality', function() { | |
| 113 | afterE ach(functi on() { | |
| 114 | rp cClientFac tory.close RpcClient( writebackC ontext); | |
| 115 | }); | |
| 116 | ||
| 117 | it('re turns 1 if lock is s ucessful', function( done) { | |
| 118 | th is.timeout (5000); | |
| 119 | lo ckPatient. lockPatien t(writebac kContext, function(e rr, result ) { | |
| 120 | expect(r esult).to. match('1') ; | |
| 121 | expect(e rr).to.be. null(); | |
| 122 | lockPati ent.unlock Patient(wr itebackCon text); | |
| 123 | done(); | |
| 124 | }) ; | |
| 125 | }); | |
| 126 | ||
| 127 | it.ski p('returns 0 and an error mess age if loc k is unsuc essful', f unction(do ne) { | |
| 128 | th is.timeout (7000); | |
| 129 | lo ckPatient. lockPatien t(writebac kContext, function(e rr, result ) { | |
| 130 | //consol e.log('THI S IS THE E RROR MESSA GE: ' + er r); | |
| 131 | //consol e.log('THI S IS THE R ESULT MESS AGE: ' + r esult); | |
| 132 | expect(r esult).to. match('1') ; | |
| 133 | expect(e rr).to.be. null(); | |
| 134 | lockPati ent.lockPa tient(writ ebackConte xt2, funct ion(err2, result2) { | |
| 135 | //co nsole.log( 'THIS IS T HE ERROR M ESSAGE: ' + err2); | |
| 136 | //co nsole.log( 'THIS IS T HE RESULT MESSAGE: ' + result2 ); | |
| 137 | done (); | |
| 138 | }); | |
| 139 | lockPati ent.unlock Patient(wr itebackCon text); | |
| 140 | }) ; | |
| 141 | }); | |
| 142 | }); |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.