Produced by Araxis Merge on 5/29/2018 12:14:54 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 | mobile-kidney-web-2.0.0.zip\mobile-kidney-web\app\src\container\components\footer | footer_controller.js | Wed Apr 4 20:16:48 2018 UTC |
2 | mobile-kidney-web-2.0.0.zip\mobile-kidney-web\app\src\container\components\footer | footer_controller.js | Tue May 29 16:10:09 2018 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 2 | 66 |
Changed | 1 | 2 |
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 pp', 'auth entication _service', 'PatientF HIRService '], functi on (app) { | |
2 | "u se strict" ; | |
3 | ap p.controll er('Footer Controller ', functio n ($scope, PatientFH IRService, authentic ationServi ce) { | |
4 | $scope. V s ID
|
|
5 | $sco pe.advocat eForName = null; | |
6 | $sco pe.facilit yName = nu ll; | |
7 | $sco pe.loggedI nUser = {} ; | |
8 | if ( authentica tionServic e.isAuthen ticated()) { | |
9 | Patien tFHIRServi ce.getPati entContext ().then(fu nction(log gedInUser) { | |
10 | loadUser Details(lo ggedInUser ); | |
11 | }); | |
12 | } | |
13 | ||
14 | func tion loadU serDetails (user) { | |
15 | if (us er) { | |
16 | $scope.u serName = user.name[ 0].text; | |
17 | ||
18 | //TODO: THIS FUNCT IONALITY N EEDS TO BE REVISITED , WITH CUR RENT IMPLE MENTATION, NO WAY TO DETERMINE IF LOGGED IN USER I S AN ADVOC ATE FOR AN OTHER USER | |
19 | ||
20 | // if (i sAdvocate( user)) { | |
21 | // $scope.adv ocateForNa me = user. name[0].te xt; | |
22 | // } els e if (user .facilityN ame) { | |
23 | // $scope.fac ilityName = user.fac ilityName; | |
24 | // } | |
25 | } | |
26 | } | |
27 | ||
28 | func tion isAdv ocate(user ) { | |
29 | return user.pati ent.patien tIdentifie r !== null | |
30 | && user. patient.pa tientIdent ifier.uniq ueId !== n ull | |
31 | && user. id !== use r.patient. patientIde ntifier.un iqueId; | |
32 | }; | |
33 | }) ; | |
34 | }); |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.