234. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 12/7/2018 11:36:04 AM Central Standard 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.

234.1 Files compared

# Location File Last Modified
1 C:\SCRUB\MHED\MHED\VAR 4.10.0\var-web-release-4.10@e10f18de1ef\veteran-appointment-requests\app\modules\new-appointment-request\views\common\facility section-view.js Mon Oct 22 23:25:20 2018 UTC
2 C:\MHED-scrubbed\MHED\MHED\VAR 4.10.0\var-web-release-4.10@e10f18de1ef\veteran-appointment-requests\app\modules\new-appointment-request\views\common\facility section-view.js Fri Dec 7 13:07:38 2018 UTC

234.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 3 264
Changed 2 4
Inserted 0 0
Removed 0 0

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

234.4 Active regular expressions

No regular expressions were active.

234.5 Comparison detail

  1   define([
  2       'under score',
  3       'modul es/form/se ction-view ',
  4       'modul es/new-app ointment-r equest/vie ws/direct/ pac-team/s ection-vie w',
  5       'json! modules/ne w-appointm ent-reques t/views/co mmon/facil ity/data/f acility-se ction.json ',
  6   ], functio n(_, Secti onView, Pa ctSectionV iew, metad ata) {
  7       'use s trict';
  8  
  9  
  10       var EX PRESS_CARE _ID = 'CR1 ';
  11       var PR IMARY_CARE _ID = '323 ';
  12  
  13  
  14       /**
  15        * @cl ass Facili tySectionV iew
  16        * @ty pedef {Bac kbone.View <Backbone. Model>}
  17        */
  18       return  SectionVi ew.extend( {
  19             collection Events: {' change:val ue': 'upda teF DNS     el'},
  20  
  21           ui : {express : '.expres s-time'},
  22  
  23           in itialize:  function(o ptions) {
  24                var sect ionName =  'facility- section';
  25                this.leg end = this .getLegend FromMetada ta(section Name, meta data, fals e) || '';
  26                this.col lection =  this.getQu estionsFro mMetadata( sectionNam e, metadat a);
  27                this.fac ilities =  options.pa tientEnrol ledFacilit ies;
  28                this.cli nicsInstit utionCodes  = options .clinicsIn stitutionC odes || [] ;
  29                this.goo gleAnalyti cs = optio ns.googleA nalyticsPr ovider.get Instance() ;
  30  
  31                this.set FacilityQu estionMode l();
  32                this.ini tializeQue stionEvent Listeners( );
  33  
  34                this.lis tenTo(this .model.pac Team(), 'f etch:succe ss', this. injectPacT eam);
  35           },
  36  
  37           on Render: fu nction() {
  38                var $fie ld = this. $('.field- contain');
  39                $field.a ppend($('< p class="e xpress-tim e">'));
  40                this.bin dUIElement s();
  41           },
  42  
  43           on BeforeDest roy: funct ion() {
  44                // This  should pro b go in th e section  view
  45                this.col lection.of f('change: value');
  46           },
  47  
  48           se tFacilityQ uestionMod el: functi on() {
  49                var faci lities = t his.facili ties.toSec tionData(t his.clinic sInstituti onCodes);
  50                var faci lityQuesti onModel =  this.colle ction.get( 'facility' );
  51                faciliti es = _.cha in(facilit ies)
  52                    .sor tBy('text' )
  53                    .sor tBy(functi on(facilit y) {
  54                         return fac ility.hasP actLabel *  -1;
  55                    })
  56                    .val ue();
  57                facility QuestionMo del.set('v alues', fa cilities);
  58           },
  59  
  60             updateF DNS     el: functi on(model)  {
  61                var id =  model.get ('id');
  62                var valu e = model. get('value ');
  63                var faci lityModel;
  64                var faci lityName;
  65  
  66                // Remov e view for  PAC team  for condit ional inje cting
  67                if (this .model.get CareId() = == PRIMARY _CARE_ID)  {
  68                    $('. pacTeam'). remove();
  69                }
  70  
  71                if (!_.i sUndefined (value)) {
  72                    if ( typeof val ue === 'st ring') {
  73                         facilityMo del = this .facilitie s.findWher e({institu tionCode:  value});
  74                    } el se {
  75                         facilityMo del = this .facilitie s.findWher e({institu tionCode:  value.get( 'instituti onCode')}) ;
  76                    }
  77  
  78                    this .model.set (id, facil ityModel);
  79                    this ._insertEx pressCareM essage(fac ilityModel );
  80                    faci lityName =  facilityM odel.forma tTextValue (false);
  81  
  82                    // T his was or iginally i n type of  care in th e old Goog le Analyti cs, but be cause they  where
  83                    // s ending the  facility  name, It h as been mo ved to her e
  84                    this .googleAna lytics.gas ('send', ' event', 'v eteran-app ointment',  'facility -selected' , facility Name);
  85                }
  86           },
  87  
  88           /* *
  89            *  Appends t he DOM wit h an expre ssCare mes sage
  90            *  @param {B ackbone.Mo del} facil ityModel
  91            *  @return { void}
  92            *  @private
  93            * /
  94           _i nsertExpre ssCareMess age: funct ion(facili tyModel) {
  95                var isEx pressCare  = this.mod el.getCare Id() === E XPRESS_CAR E_ID;
  96                var mess age;
  97  
  98                if (this .ui.expres s) {
  99                    this .ui.expres s.empty();
  100                }
  101  
  102                if (isEx pressCare  && facilit yModel.isE xpressSupp ortedToday ()) {
  103                    mess age = faci lityModel. getExpress Message();
  104                    this .ui.expres s.text(mes sage);
  105                }
  106           },
  107  
  108           in jectPacTea m: functio n() {
  109                var faci lity = thi s.model.fa cility();
  110                var pacT eam = this .model.pac Team();
  111                var site Code = thi s.model.ge tSiteCode( );
  112  
  113                if (this .pacTeamVi ew) {
  114                    this .pacTeamVi ew.destroy ();
  115                    this .pacTeamVi ew = null;
  116                }
  117  
  118                if (pacT eam.hasPac TeamAtFaci lity(siteC ode)) {
  119                    this .$el.css(' display',  'flex');
  120                    this .pacTeamVi ew = new P actSection View({
  121                         model: thi s.model,
  122                         team: pacT eam,
  123                         facility:  facility,
  124                    });
  125                    this .pacTeamVi ew.render( );
  126                    this .pacTeamVi ew.$el.chi ldren().ea ch(functio n () {
  127                         $(this).cs s({'margin -top': 0,  'margin-bo ttom': 0,  'padding':  0});
  128                    });
  129                    this .pacTeamVi ew.$('p'). css({'marg in-top': 0 , 'padding ': 0});
  130                    this .$el.appen d(this.pac TeamView.$ el);
  131                }
  132           },
  133       });
  134   });