Produced by Araxis Merge on 4/8/2019 1:00:39 PM 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 | C:\AraxisMergeCompare\Pri_un\crp-fitheart-release-2.0\app\src\modules\trackers-fhir | bp_pulse_fhir_service.js | Wed Mar 20 17:30:00 2019 UTC |
| 2 | C:\AraxisMergeCompare\Pri_re\MHED P3 Healthshare 2.0-redacted\crp-fitheart-release-2.0\app\src\modules\trackers-fhir | bp_pulse_fhir_service.js | Mon Apr 8 16:45:56 2019 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 168 |
| Changed | 1 | 4 |
| 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 | define(['a ngular', ' app', 'Tra ckersFHIRS ervice'], function ( angular, a pp) { | |
| 2 | 'use s trict'; | |
| 3 | ||
| 4 | app.se rvice('BpP ulseFHIRSe rvice', fu nction (Tr ackersFHIR Service) { | |
| 5 | va r emptyBpP ulseResour ce = { | |
| 6 | meta: { | |
| 7 | tag: [ | |
| 8 | { | |
| 9 | 'system': 'https://w iki.mobile health. DOMAIN . EXT /display/P GDMS/Clien t+Provenan ce+Mapping ', | |
| 10 | 'code' : ' REDACTED ', | |
| 11 | 'displ ay': 'VA F itHeart' | |
| 12 | } | |
| 13 | ], | |
| 14 | }, | |
| 15 | code: {c oding: [{' system': ' http://loi nc.org','c ode': '871 6-3','disp lay': 'Vit al Signs'} ]}, | |
| 16 | componen t: [ | |
| 17 | { | |
| 18 | code: {cod ing: [{sys tem: 'http ://loinc.o rg',code: '8480-6',d isplay: 'S ystolic bl ood pressu re'}]}, | |
| 19 | valueQuant ity: {unit : 'mm[Hg]' } | |
| 20 | }, | |
| 21 | { | |
| 22 | code: {cod ing: [{sys tem: 'http ://loinc.o rg',code: '8462-4',d isplay: 'D iastolic b lood press ure'}]}, | |
| 23 | valueQuant ity: {unit : 'mm[Hg]' } | |
| 24 | }, | |
| 25 | { | |
| 26 | code: {cod ing: [{sys tem: 'http ://loinc.o rg',code: '8867-4',d isplay: 'H eart rate' }]}, | |
| 27 | valueQuant ity: {unit : 'bpm'} | |
| 28 | } | |
| 29 | ] | |
| 30 | }; | |
| 31 | ||
| 32 | va r position s = { | |
| 33 | Standing : {code: { coding: [{ system: 'h ttp://loin c.org',cod e: '69001- 6',display : 'Heart r ate --stan ding'}]}, | |
| 34 | valu eString: ' Standing' | |
| 35 | }, | |
| 36 | Sitting: {code: {c oding: [{s ystem: 'ht tp://loinc .org',code : '69000-8 ', display : 'Heart r ate --sitt ing'}]}, | |
| 37 | valu eString: ' Sitting' | |
| 38 | }, | |
| 39 | Lying: { code: {cod ing: [{sys tem: 'http ://loinc.o rg', code: '68999-2' , display: 'Heart ra te --supin e'}]}, | |
| 40 | valu eString: ' Lying' | |
| 41 | } | |
| 42 | } | |
| 43 | ||
| 44 | re turn angul ar.extend( {}, angula r.copy(Tra ckersFHIRS ervice), { | |
| 45 | code: 'h ttp://loin c.org|8716 -3', | |
| 46 | supports Latest: tr ue, | |
| 47 | ||
| 48 | buildRes ource: fun ction (ngM odel) { | |
| 49 | Trac kersFHIRSe rvice.buil dResource( ngModel); | |
| 50 | ||
| 51 | if ( ngModel.me thod) { | |
| 52 | ngModel.co mponent[3] = positio ns[ngModel .method]; | |
| 53 | ngModel.me thod = und efined; | |
| 54 | } el se if (ngM odel.compo nent[3]) { | |
| 55 | // remove position i f it's bee n unset | |
| 56 | ngModel.co mponent = ngModel.co mponent.sp lice(0, 3) ; | |
| 57 | ngModel.me thod = und efined; | |
| 58 | } | |
| 59 | ||
| 60 | ngMo del.compon ent = ngMo del.compon ent.map(fu nction (it em) { | |
| 61 | // convert string nu mbers back to regula r int | |
| 62 | if (item.h asOwnPrope rty('value Quantity') ) { | |
| 63 | item.v alueQuanti ty.value = parseInt( item.value Quantity.v alue); | |
| 64 | } | |
| 65 | return ite m; | |
| 66 | }); | |
| 67 | ||
| 68 | retu rn ngModel ; | |
| 69 | }, | |
| 70 | ||
| 71 | createEm pty: funct ion () { | |
| 72 | var emptyResou rce = angu lar.copy(e mptyBpPuls eResource) ; | |
| 73 | ||
| 74 | retu rn angular .extend({} , Trackers FHIRServic e.createEm pty(), emp tyResource ); | |
| 75 | }, | |
| 76 | ||
| 77 | transfor mItem: fun ction (ite m) { | |
| 78 | Trac kersFHIRSe rvice.tran sformItem( item); | |
| 79 | ||
| 80 | if ( item.compo nent[3]) { | |
| 81 | item.metho d = item.c omponent[3 ].valueStr ing; | |
| 82 | } | |
| 83 | } | |
| 84 | }) ; | |
| 85 | }); | |
| 86 | }); |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.