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

242.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\requests\purpose 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\requests\purpose section-view.js Fri Dec 7 13:07:42 2018 UTC

242.2 Comparison summary

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

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

242.4 Active regular expressions

No regular expressions were active.

242.5 Comparison detail

  1   // normall y the mode l is passe d to the v iew instea d of the v iew creati ng the mod el
  2   define([
  3       'under score',
  4       'mario nette',
  5       'App',
  6       'modul es/appoint ments/appo intments-m odule',
  7  
  8       'modul es/form/se ction-view ',
  9       'text! modules/ne w-appointm ent-reques t/views/re quests/pur pose/type- of-visit-w arning.htm l',
  10       'text! modules/ne w-appointm ent-reques t/views/re quests/pur pose/phone -call-warn ing.html',
  11       'json! modules/ne w-appointm ent-reques t/views/re quests/for m.json',
  12   ],
  13   function(
  14       _,
  15       Marion ette,
  16       app,
  17       module ,
  18       Sectio nView,
  19       _warni ngTemplate ,
  20       _phone CallWarnin g,
  21       metada ta
  22   ) {
  23       'use s trict';
  24  
  25       return  SectionVi ew.extend( {
  26             collection Events: {' change:val ue': 'upda teF DNS     el'},
  27           mo delEvents:  {
  28                // eslin t-disable- next-line  max-len
  29                'change: purposeOfV isit': 'sh owHideOthe rPurposeOf VisitQuest ionAndVali dation sel ectTypeOfV isit showH idePhoneCa llWarning' ,
  30                'change: visitType' : 'showHid eVideoConf erenceWarn ing',
  31           },
  32           in itialize:  function(o ptions) {
  33                var sect ionName =  'request-d etails-typ e-purpose- section';
  34                this.leg end = this .getLegend FromMetada ta(section Name, meta data, fals e) || '';
  35                this.col lection =  this.getQu estionsFro mMetadata( sectionNam e, metadat a);
  36  
  37                // initi alize list ener to 'c hange:valu e' after s tatic valu es are set
  38                this.ini tializeQue stionEvent Listeners( );
  39                this.val idator = o ptions.val idator;
  40           },
  41           on Render: fu nction() {
  42                this.ini tChildren( );
  43                this.app endVideoCo nferenceWa rning();
  44                this.app endPhoneCa llWarning( );
  45                this.sho wHideOther PurposeOfV isitQuesti onAndValid ation();
  46           },
  47           ap pendPhoneC allWarning : function () {
  48                this.$el .find('[fo r="visitTy pe-phone-c all"] .lab el-text')
  49                    .app end(_phone CallWarnin g);
  50                this.sho wHidePhone CallWarnin g(this.mod el);
  51           },
  52           sh owHidePhon eCallWarni ng: functi on(model)  {
  53                var $pho neCallWarn ing;
  54  
  55                if (!thi s.isDestro yed()) {
  56                    $pho neCallWarn ing = this .$el.find( '.phone-ca ll-warning ');
  57  
  58                    $pho neCallWarn ing.toggle Class('hid den',
  59                         (model.get CareId() ! == module. clinicalSe rvicesCons tants.PRIM ARY_CARE_I D) ||
  60                         (model.get ('purposeO fVisit') ! == 'Medica tion Conce rn'));
  61                }
  62           },
  63           se lectTypeOf Visit: fun ction() {
  64                if (type of gas !==  'undefine d') {
  65                    // e slint-disa ble-next-l ine max-le n
  66                    gas( 'send', 'e vent', 've teran-appo intment',  'appointme nt-request -purpose-s elected',  this.model .get('purp oseOfVisit '));
  67                }
  68  
  69                if (
  70                    (thi s.model.ge tCareId()  === module .clinicalS ervicesCon stants.PRI MARY_CARE_ ID) &&
  71                    (thi s.model.ge t('purpose OfVisit')  === 'Medic ation Conc ern')
  72                ) {
  73                    // s ection-vie w has list ener to up date model  according ly
  74                    this .collectio n.get('vis itType').s et('value' , 'Phone C all');
  75                    this .$el.find( '#visitTyp e-phone-ca ll').prop( 'checked',  true);
  76                } else {
  77                    // s ection-vie w has list ener to up date model  according ly
  78                    this .collectio n.get('vis itType').s et('value' , 'Office  Visit');
  79                    this .$el.find( '#visitTyp e-office-v isit').pro p('checked ', true);
  80                }
  81           },
  82           ap pendVideoC onferenceW arning: fu nction() {
  83                this.$el .find('.ty pe-of-visi t-question ')
  84                    .app end(_.temp late(_warn ingTemplat e)(this.te mplateCont ext()));
  85                this.sho wHideVideo Conference Warning(th is.model);
  86           },
  87           sh owHideVide oConferenc eWarning:  function(m odel) {
  88                var $oth erPurposeO fVisit;
  89  
  90                if (!thi s.isDestro yed()) {
  91                    $oth erPurposeO fVisit = t his.$el.fi nd('.video -conferenc e-warning' );
  92                    $oth erPurposeO fVisit.tog gleClass(' hidden',
  93                         (model.get ('visitTyp e') !== 'V ideo Confe rence'));
  94                }
  95           },
  96           sh owHideOthe rPurposeOf VisitQuest ionAndVali dation: fu nction(mod el) {
  97                var $oth erPurposeO fVisit;
  98                var isHi dingQuesti on;
  99  
  100                if (!thi s.isDestro yed()) {
  101                    $oth erPurposeO fVisit = t his.$el.fi nd('.other -purpose-o f-visit-qu estion');
  102                    isHi dingQuesti on = !(thi s.model.ha s('purpose OfVisit')  && this.mo del.get('p urposeOfVi sit') ===  'Other');
  103  
  104                    $oth erPurposeO fVisit.tog gleClass(' hidden',
  105                         isHidingQu estion);
  106  
  107                    if ( isHidingQu estion) {
  108                         this.hideV alidationE rrorsFor($ otherPurpo seOfVisit) ;
  109                    }
  110                }
  111           },
  112       });
  113   });