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 | cholesterol_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 | cholesterol_fhir_service.js | Mon Apr 8 16:46:15 2019 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 192 |
| 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('Cho lesterolFH IRService' , function (Trackers FHIRServic e) { | |
| 5 | va r emptyCho lesterolRe source = { | |
| 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: { | |
| 16 | codi ng: [{syst em: 'http: //loinc.or g', code: '24331-1', display: 'Lipid 199 6 panel - Serum or P lasma'}] | |
| 17 | }, | |
| 18 | componen t: [ | |
| 19 | { | |
| 20 | code: {cod ing: [{sys tem: 'http ://loinc.o rg', code: '9830-1', display: 'Cholester ol.total/C holesterol in HDL [M ass Ratio] in Serum or Plasma' }]}, | |
| 21 | valueQuant ity: {unit : "mg/dl"} , | |
| 22 | }, | |
| 23 | { | |
| 24 | code: {cod ing: [{sys tem: 'http ://loinc.o rg', code: '13457-7' , display: 'Choleste rol in LDL [Mass/vol ume] in Se rum or Pla sma by cal culation'} ]}, | |
| 25 | valueQuant ity: {unit : "mg/dl"} , | |
| 26 | }, | |
| 27 | { | |
| 28 | code: {cod ing: [{sys tem: 'http ://loinc.o rg', code: '2085-9', display: 'Cholester ol in HDL [Mass/volu me] in Ser um or Plas ma'}]}, | |
| 29 | valueQuant ity: {unit : "mg/dl"} , | |
| 30 | }, | |
| 31 | { | |
| 32 | code: {cod ing: [{sys tem: 'http ://loinc.o rg',code: '2571-8', display: ' Triglyceri de [Mass/v olume] in Serum or P lasma'}]}, | |
| 33 | valueQuant ity: {unit : "mg/dl"} }, | |
| 34 | , | |
| 35 | { code: {cod ing: [{sys tem: 'http ://loinc.o rg',code: '49541-6', display: ' Unknown'}] }, | |
| 36 | valueStrin g: 'Unknow n' | |
| 37 | } | |
| 38 | ] | |
| 39 | ||
| 40 | }; | |
| 41 | ||
| 42 | va r position s = { | |
| 43 | Fasting: { | |
| 44 | code : {coding: [{system: 'http://l oinc.org', code: '495 41-6',disp lay: 'Fast ing 8 Hour s'}]}, | |
| 45 | valu eString: ' Fasting (8 hours)'}, | |
| 46 | AfterMea l: {code: {coding: [ {system: ' http://loi nc.org',co de: '49541 -6',displa y: 'After Meal'}]}, | |
| 47 | valu eString: ' After Meal '}, | |
| 48 | Unknown: {code: {c oding: [{s ystem: 'ht tp://loinc .org',code : '49541-6 ',display: 'Unknown' }]}, | |
| 49 | valu eString: ' Unknown' | |
| 50 | } | |
| 51 | } | |
| 52 | ||
| 53 | re turn angul ar.extend( {}, angula r.copy(Tra ckersFHIRS ervice), { | |
| 54 | code: 'h ttp://loin c.org|2433 1-1', | |
| 55 | supports Latest: tr ue, | |
| 56 | ||
| 57 | ||
| 58 | buildRes ource: fun ction (ngM odel) { | |
| 59 | Trac kersFHIRSe rvice.buil dResource( ngModel); | |
| 60 | ||
| 61 | if ( ngModel.me thod) { | |
| 62 | ngModel.co mponent[4] = positio ns[ngModel .method]; | |
| 63 | ngModel.me thod = und efined; | |
| 64 | } el se if (ngM odel.compo nent[4]) { | |
| 65 | // remove position i f it's bee n unset | |
| 66 | ngModel.co mponent = ngModel.co mponent.sp lice(0, 4) ; | |
| 67 | ngModel.me thod = und efined; | |
| 68 | } | |
| 69 | ||
| 70 | ngMo del.compon ent = ngMo del.compon ent.map(fu nction (it em) { | |
| 71 | // convert string nu mbers back to regula r int | |
| 72 | if (item.h asOwnPrope rty('value Quantity') ) { | |
| 73 | item.v alueQuanti ty.value = parseInt( item.value Quantity.v alue); | |
| 74 | } | |
| 75 | return ite m; | |
| 76 | }); | |
| 77 | ||
| 78 | retu rn ngModel ; | |
| 79 | }, | |
| 80 | ||
| 81 | createEm pty: funct ion () { | |
| 82 | var emptyResou rce = angu lar.copy(e mptyCholes terolResou rce); | |
| 83 | ||
| 84 | retu rn angular .extend({} , Trackers FHIRServic e.createEm pty(), emp tyResource ); | |
| 85 | }, | |
| 86 | ||
| 87 | transfor mItem: fun ction (ite m, ngModel ) { | |
| 88 | ||
| 89 | Trac kersFHIRSe rvice.tran sformItem( item); | |
| 90 | ||
| 91 | if ( item.compo nent[4]) { | |
| 92 | item.metho d = item.c omponent[4 ].valueStr ing; | |
| 93 | } | |
| 94 | ||
| 95 | } | |
| 96 | }) ; | |
| 97 | }); | |
| 98 | }); |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.