210. EPMO Open Source Coordination Office Redaction File Detail Report

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

210.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\community-care-request\new-appointment-request-question\facility-caretype-selection community-care-facility-caretype-layout-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\community-care-request\new-appointment-request-question\facility-caretype-selection community-care-facility-caretype-layout-view.js Fri Dec 7 13:07:16 2018 UTC

210.2 Comparison summary

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

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

210.4 Active regular expressions

No regular expressions were active.

210.5 Comparison detail

  1   /* eslint- disable ma x-len,came lcase */
  2   define([
  3       'under score',
  4       'App',
  5       'Vent' ,
  6       'modul es/communi ty-care-re quest/view /community -care-view ',
  7       'modul es/new-app ointment-w izard/wiza rd-step-mo del',
  8       'modul es/communi ty-care-re quest/new- appointmen t-request- question/f acility-ca retype-sel ection/fac ility-sect ion-view',
  9       'modul es/communi ty-care-re quest/new- appointmen t-request- question/f acility-ca retype-sel ection/car etype-sect ion-view',
  10       'modul es/communi ty-care-re quest/new- appointmen t-request- question/p referred-p rovider/pr eferred-pr ovider-lay out-view',
  11       'modul es/communi ty-care-re quest/new- appointmen t-request- question/r equest-pre ferences/c ommunity-c are-appoin tment-pref erences-la yout-view' ,
  12       'text! modules/co mmunity-ca re-request /new-appoi ntment-req uest-quest ion/facili ty-caretyp e-selectio n/communit y-care-fac ility-care type-layou t.html',
  13   ],
  14   function(
  15       _,
  16       app,
  17       vent,
  18       Commun ityCareVie w,
  19       Wizard StepModel,
  20       Facili tySectionV iew,
  21       CareTy peSectionV iew,
  22       Primar yCareLayou tView,
  23       Appoin tmentPrefe rencesLayo utView,
  24       templa te
  25   ) {
  26       'use s trict';
  27  
  28         // TODO ma ke a Wizar d Page Lay out View t hat this c an extend  to make so me methods  such as d eclaimF DNS     trols, dis ableContin ue, enable Continue,  showPrevio us DRY
  29       return  Community CareView.e xtend({
  30           te mplate: _. template(t emplate),
  31           re gions: {
  32                facility SelectionS ection: '. facility-s election-s ection',
  33                careType SelectionS ection: '. caretype-s election-s ection',
  34           },
  35           mo delEvents:  {
  36                'change: facility':  'handleMo delChange' ,
  37                'change: careTypeCo ntinue': ' handleMode lChange',
  38           },
  39           ha ndleModelC hange: fun ction () {
  40                if (this .validator .checkForm () && this .model.get ('careType Continue')  === 'yes' ) {
  41                    this .enableCon tinueButto n();
  42                } else {
  43                    this .disableCo ntinueButt on();
  44                }
  45           },
  46           in itialize:  function ( options) {
  47                if (_.is Undefined( options))  {
  48                    this .model = n ew WizardS tepModel.M odel();
  49                } else {
  50                    this .model = o ptions.mod el;
  51                }
  52                this.val idator = o ptions.val idator;
  53           },
  54           on Render: fu nction ()  {
  55                var step s = this.m odel.get(' steps');
  56  
  57                $.when(a pp.patient EnrolledFa cilities.i sReady).th en(functio n () {
  58                    var  facility;
  59  
  60                    this .showChild View('faci litySelect ionSection ', new Fac ilitySecti onView({
  61                         model: thi s.model,
  62                         step: step s[0],
  63                         patientEnr olledFacil ities: app .patientEn rolledFaci lities,
  64                         hasMultiFa cilities:  this.hasMu ltiFacilit ies(),
  65                    }));
  66  
  67                    if ( app.patien tEnrolledF acilities. length ===  1) {
  68                         // patient  has singl e register ed facilit y
  69                         facility =  app.patie ntEnrolled Facilities .at(0);
  70                         this.model .set('faci lity', fac ility);
  71                    }
  72                }.bind(t his));
  73  
  74                this.sho wChildView ('careType SelectionS ection', n ew CareTyp eSectionVi ew({
  75                    mode l: this.mo del,
  76                    step : steps[1] ,
  77                    vali dator: thi s.validato r,
  78                    ccTy peOfCares:  app.ccTyp eOfCares,
  79                }));
  80           },
  81           on DomRefresh : function () {
  82                if (!thi s.validato r.checkFor m() || thi s.model.ge t('careTyp eContinue' ) === 'no' ) {
  83                    this .disableCo ntinueButt on();
  84                }
  85           },
  86           to Continue:  function()  {
  87                if (this .model.get ('careType ') === 'CC PCPRVDR')  {
  88                    vent .trigger(' show:nextW izardPage' , PrimaryC areLayoutV iew, 1);
  89                } else {
  90                    if ( !this.mode l.get('opt ionTime1') ) {
  91                         this.model .set('opti onTime1',  'AM');
  92                    }
  93                    vent .trigger(' show:nextW izardPage' , Appointm entPrefere ncesLayout View, 1);
  94                }
  95           },
  96           ha sMultiFaci lities: fu nction() {
  97                return a pp.patient Identifier s.getDfnSi teCodes(). length > 1 ;
  98           },
  99       });
  100   });