8. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 7/25/2018 3:40: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.

8.1 Files compared

# Location File Last Modified
1 Pain_Coach_v3.0_Jun_2018.zip\vpc-patient-web.zip\vpc-patient-web\app\common\lib resource_directory_util.js Fri Jun 1 14:27:13 2018 UTC
2 Pain_Coach_v3.0_Jun_2018.zip\vpc-patient-web.zip\vpc-patient-web\app\common\lib resource_directory_util.js Tue Jul 24 19:09:06 2018 UTC

8.2 Comparison summary

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

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

8.4 Active regular expressions

No regular expressions were active.

8.5 Comparison detail

  1   var App_Re sources =  {
  2     "Data":  {},
  3     "Model":  {},
  4     "Collect ion": {}
  5   };
  6  
  7   App_Resour ces.hostna me = "http s:// URL /";
  8  
  9   App_Resour ces.Model. AppResourc e = Backbo ne.Model.e xtend({
  10     idAttrib ute: "titl e",
  11     defaults : {
  12       "title ": "",
  13       "href" : "",
  14     }
  15   });
  16  
  17   App_Resour ces.Model. PgdResourc e = Backbo ne.Model.e xtend({
  18     idAttrib ute: "titl e",
  19     defaults : {
  20       "title ": "",
  21       "value ": "",
  22     }
  23   });
  24  
  25   App_Resour ces.Model. PgdModelRe source = B ackbone.Mo del.extend ({
  26     idAttrib ute: "mode lType",
  27     defaults : {
  28       "model Type": "",
  29       "mappi ngs": {},
  30     }
  31   });
  32  
  33   App_Resour ces.Model. AtomResour ce = Backb one.Model. extend({
  34     idAttrib ute: "titl e",
  35     defaults : {
  36       "rel":  "",
  37       "title ": "",
  38       "objec t-type": " ",
  39       "href" : "",
  40       "type" : ""
  41     }
  42   });
  43  
  44   App_Resour ces.Model. HateoasRes ource = Ba ckbone.Mod el.extend( {
  45     idAttrib ute: "rel" ,
  46     defaults : {
  47       "rel":  "",
  48       "href" : ""
  49     }
  50   });
  51  
  52   App_Resour ces.Collec tion.Resou rcesBase =  Backbone. Collection .extend({
  53     fetch: f unction ()  {
  54       var de ferred = $ .Deferred( ),
  55           co llection =  this;
  56  
  57       $.getJ SON(this.u rl).done(f unction (r esourcesRe sponse) {
  58           co llection.r eset(resou rcesRespon se.resourc es);
  59           de ferred.res olve();
  60       }).fai l(function  (jqXHR, t extStatus,  errorThro wn) {
  61           de ferred.rej ect(jqXHR,  textStatu s, errorTh rown);
  62       });
  63  
  64       return  deferred. promise();
  65     }
  66   });
  67  
  68   App_Resour ces.Collec tion.AppRe sources =  App_Resour ces.Collec tion.Resou rcesBase.e xtend({
  69     url: 're sources.js on',
  70     model: A pp_Resourc es.Model.A ppResource
  71   });
  72  
  73   App_Resour ces.Collec tion.PgdRe sources =  App_Resour ces.Collec tion.Resou rcesBase.e xtend({
  74     url: 'pg dResources .json',
  75     model: A pp_Resourc es.Model.P gdResource
  76   });
  77  
  78   App_Resour ces.Collec tion.PgdMo delResourc es = App_R esources.C ollection. ResourcesB ase.extend ({
  79     url: 'pg dModelReso urces.json ',
  80     model: A pp_Resourc es.Model.P gdModelRes ource
  81   });
  82  
  83   /**
  84    * @return s {String}
  85    */
  86   App_Resour ces.GetVPC ResourcePa th = funct ion(urlNam e, params)  {
  87     var urlP ath = VPC. Resources. App.get(ur lName).toJ SON().href .replace(/ {/g, "{{") .replace(/ }/g, "}}") ;
  88  
  89     var temp late = Han dlebars.co mpile(urlP ath);
  90     return t emplate(pa rams);
  91   };
  92  
  93   /**
  94    * @return s {String}
  95    */
  96   App_Resour ces.GetPGD ResourceVa lue = func tion(resou rceName) {
  97     var reso urceValue  = VPC.Reso urces.Pgd. get(resour ceName).ge t('value') ;
  98  
  99     return r esourceVal ue;
  100   };
  101  
  102   /**
  103    * @return s {Object}
  104    */
  105   App_Resour ces.GetPGD ModelValue  = functio n(resource Name, valu eTitle) {
  106     var mode lValue = V PC.Resourc es.PgdMode l.get(reso urceName). get('mappi ngs')[valu eTitle];
  107  
  108     return m odelValue;
  109   };
  110  
  111   /**
  112    * @return s {Object}
  113    */
  114   App_Resour ces.GetPGD ModelValue ByField =  function(m odelType,  fieldName,  fieldValu e) {
  115     var pgdR esource =  VPC.Resour ces.PgdMod el.get(mod elType).ge t('mapping s');
  116     for (var  pgdMappin g in pgdRe source) {
  117       if (pg dResource[ pgdMapping ][fieldNam e] === fie ldValue) {
  118         pgdR esource[pg dMapping]. mappingNam e = pgdMap ping;
  119  
  120         retu rn pgdReso urce[pgdMa pping];
  121       }
  122     }
  123  
  124     return n ull;
  125   };
  126  
  127   /**
  128    * @return s {String}
  129    */
  130   App_Resour ces.GetUse rAssigning Authority  = function () {
  131     try {
  132       if (VP C.Data.Vie w.Header.m hpuser) {
  133         retu rn VPC.Dat a.View.Hea der.mhpuse r.userIden tifier.ass igningAuth ority;
  134       }
  135       else {
  136         retu rn undefin ed;
  137       }
  138  
  139     }
  140     catch (e rr) {
  141       consol e.log('err or getting  assigning  authority : ' + err. message);
  142       return  undefined ;
  143     }
  144  
  145     return u ndefined;
  146   };
  147  
  148   /**
  149    * @return s {String}
  150    */
  151   App_Resour ces.GetUse rPatientId  = functio n() {
  152     try {
  153       if (VP C.Data.Vie w.Header.m hpuser) {
  154         retu rn VPC.Dat a.View.Hea der.mhpuse r.userIden tifier.uni queId;
  155       }
  156     }
  157     catch (e rr) {
  158       consol e.log('err or getting  patient i d: ' + err .message);
  159       return  null;
  160     }
  161     return n ull;
  162  
  163   };