43. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 12/8/2017 1:33:40 PM 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.

43.1 Files compared

# Location File Last Modified
1 PC_CP4_CiF.zip\FPPS_Frontend\fpps-app\src\app\claims\awaiting-processing awaiting-processing.component.ts Fri Dec 8 17:52:22 2017 UTC
2 PC_CP4_CiF.zip\FPPS_Frontend\fpps-app\src\app\claims\awaiting-processing awaiting-processing.component.ts Fri Dec 8 19:09:09 2017 UTC

43.2 Comparison summary

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

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

43.4 Active regular expressions

No regular expressions were active.

43.5 Comparison detail

  1   import { A waitingCla imsService  } from '. /claims-aw aiting-ser vice';
  2   import { C omponent,  OnInit, In put } from  '@angular /core';
  3   import { C laims } fr om '../../ shared/mod els/Claims ';
  4   import { A waitingPro cessingReq uest } fro m '../../s hared/mode ls/Awaitin gProcessin gRequest';
  5   import { R outer } fr om '@angul ar/router' ;
  6   import { S haredDataS ervice } f rom '../.. /shared/se rvice/shar ed-data.se rvice';
  7   import { T ableCompon ent } from  '../../sh ared/table /table.com ponent';
  8   import {
  9     RequestO ptions,
  10     URLSearc hParams,
  11     Headers,
  12     Response ,
  13     Http,
  14     Response ContentTyp e
  15   } from '@a ngular/htt p';
  16   import { e nvironment  } from '. ./../../en vironments /environme nt';
  17   import { R erouteServ ice } from  '../../sh ared/rerou te/reroute .service';
  18   import { C olumnMetad ata } from  'app/shar ed/table/c ols.model' ;
  19  
  20   @Component ({
  21     selector : 'app-cla ims-awaiti ng',
  22     template Url: 'awai ting-proce ssing.comp onent.html ',
  23     styleUrl s: ['await ing-proces sing.compo nent.scss' ]
  24   })
  25   export cla ss Awaitin gProcessin gComponent  implement s OnInit {
  26     fetching Data = tru e;
  27     public c laims: any [] = [];
  28     cols: Co lumnMetada ta[] = [
  29       new Co lumnMetada ta('select ', 'Select ?').setSel ectBox(tru e),
  30       new Co lumnMetada ta('claimI d', 'Claim  ID').setA lign('righ t'),
  31       new Co lumnMetada ta('claimT ype', 'Cla im Type'),
  32       new Co lumnMetada ta('hero',  'HERO'),
  33       new Co lumnMetada ta('vetera nName', 'N ame'),
  34       new Co lumnMetada ta('ssn',  'SSN').set Align('rig ht'),
  35       new Co lumnMetada ta('claimD ate', 'Cla im Date'). setAlign(' right'),
  36       new Co lumnMetada ta('claimA mount', 'C laim Amoun t')
  37         .set Align('rig ht')
  38         .set Currency(t rue),
  39       new Co lumnMetada ta('provid erName', ' Provider') ,
  40       new Co lumnMetada ta('lines' , 'Total L ines').set Align('rig ht'),
  41       new Co lumnMetada ta('facili ty', 'Faci lity').set Align('rig ht')
  42     ];
  43  
  44     public i ds: number [];
  45     public a ctiveStati ons: strin g[];
  46     public v isns: stri ng[];
  47     public p rivacyRest rictions:  string[];
  48     public u serName: s tring;
  49     public h eaders = n ew Headers ();
  50     getParam  = new URL SearchPara ms();
  51     searchhe aders = ne w Headers( );
  52     public c ounter: nu mber;
  53     public a waitingPro cessingReq uest: Awai tingProces singReques t;
  54     allClaim sSelectedC heckMarked  = false;
  55     construc tor(
  56       privat e router:  Router,
  57       public  sharedDat a: SharedD ataService ,
  58       privat e awaiting ClaimsServ ice: Await ingClaimsS ervice,
  59       privat e rerouteS ervice: Re routeServi ce
  60     ) { }
  61  
  62     ngOnInit () {
  63       if (
  64         !!se ssionStora ge.getItem ('activeSt ations') & &
  65         !!se ssionStora ge.getItem ('visns')  &&
  66         !!se ssionStora ge.getItem ('privacyR estriction s') &&
  67         !!se ssionStora ge.getItem ('privacyR estriction s')
  68       ) {
  69         this .userName  = sessionS torage.get Item('user Name');
  70         this .activeSta tions = se ssionStora ge.getItem ('activeSt ations').s plit(',');
  71         this .visns = s essionStor age.getIte m('visns') .split(',' );
  72         this .privacyRe strictions  = session Storage
  73           .g etItem('pr ivacyRestr ictions')
  74           .s plit(',');
  75       }
  76       // Ret rieving al l the clai ms in the  ESTABLISH  status
  77       this.a waitingPro cessingReq uest = new  AwaitingP rocessingR equest(
  78         this .userName,
  79         this .ids,
  80         this .activeSta tions,
  81         this .visns,
  82         this .privacyRe strictions
  83       );
  84       // con sole.log(' awaiting p rocessing  request is  :' + JSON .stringify (this.awai tingProces singReques t));
  85       this.h eaders.app end('Conte nt-Type',  'applicati on/json');
  86       // con sole.log(
  87       //   ' awaitingPr ocessing r equest is  : ' +
  88       //   J SON.string ify(this.a waitingPro cessingReq uest)
  89       // );
  90       const  options =  new Reques tOptions({
  91         head ers: this. headers,
  92         body : this.awa itingProce ssingReque st
  93       });
  94       consol e.log('Bef ore rest') ;
  95  
  96       this.a waitingCla imsService .getClaims (options). subscribe(
  97         data  => {
  98           if  (data[0]. claimId) {
  99              this.claim s = data;
  100              console.lo g(data);
  101           }  else {
  102              this.claim s = [];
  103              this.fetch ingData =  false;
  104              console.lo g('nodata  ', data);
  105           }
  106         },
  107         erro r => alert (error),
  108         // A dds link t o these fi elds for e ach row
  109         () = > {
  110           if  (this.cla ims.length  > 0) {
  111              this.claim s.forEach( claim => {
  112                claim.se lected = f alse;
  113                claim.cl aimIdLink  = '/claimD etail/' +  claim.clai mId;
  114                this.fet chingData  = false;
  115              });
  116           }
  117         }
  118       );
  119     }
  120  
  121     // Updat ing the cl aim status  to INPROC ESS
  122     process( ) {
  123       if (th is.isNoneC hecked())  {
  124         retu rn;
  125       }
  126  
  127       const  temp = thi s.claims.f ilter(clai m => claim .selected) ;
  128  
  129       if (th is.claims  && temp.le ngth === t his.claims .length) {
  130         this .claims =  [];
  131       }
  132       this.s haredData. inprocessS torage = t emp;
  133       this.i ds = [109] ;
  134       this.c ounter = 0 ;
  135       for (c onst clm o f temp) {
  136         this .ids[this. counter] =  clm.claim Id;
  137         this .counter++ ;
  138       }
  139  
  140       this.a waitingPro cessingReq uest = new  AwaitingP rocessingR equest(
  141         this .userName,
  142         this .ids,
  143         this .activeSta tions,
  144         this .visns,
  145         this .privacyRe strictions
  146       );
  147       this.h eaders.app end('Conte nt-Type',  'applicati on/json');
  148       const  options =  new Reques tOptions({
  149         head ers: this. headers,
  150         body : this.awa itingProce ssingReque st
  151       });
  152       this.a waitingCla imsService .process(o ptions).su bscribe(
  153         data  => (this. claims = d ata),
  154         erro r => alert (error),
  155         // A dds link t o these fi elds for e ach row
  156         () = >
  157           th is.claims. forEach(cl aim => {
  158              claim.sele cted = fal se;
  159              claim.clai mIdLink =  '/claimDet ail' + cla im.claimId ;
  160           })
  161       );
  162     }
  163     isNoneCh ecked(): b oolean {
  164       if (th is.claims. length > 0 ) {
  165         retu rn this.cl aims.every (_ => !_.s elected);
  166       }
  167     }
  168  
  169     // Updat ing the cl aim status  to INPROC ESS and pr int
  170     processA ndPrint()  {
  171       if (th is.isNoneC hecked())  {
  172         retu rn;
  173       }
  174  
  175       const  temp = thi s.claims.f ilter(clai m => claim .selected) ;
  176       this.s haredData. inprocessS torage = t emp;
  177       this.i ds = [109] ;
  178       this.c ounter = 0 ;
  179       for (c onst clm o f temp) {
  180         this .ids[this. counter] =  clm.claim Id;
  181         this .counter++ ;
  182       }
  183  
  184       this.a waitingPro cessingReq uest = new  AwaitingP rocessingR equest(
  185         this .userName,
  186         this .ids,
  187         this .activeSta tions,
  188         this .visns,
  189         this .privacyRe strictions
  190       );
  191       this.h eaders.app end('Conte nt-Type',  'applicati on/json');
  192       const  options =  new Reques tOptions({
  193         head ers: this. headers,
  194         body : this.awa itingProce ssingReque st
  195       });
  196       this.a waitingCla imsService .process(o ptions).su bscribe(
  197         data  => (this. claims = d ata),
  198         () = >
  199           th is.claims. forEach(cl aim => {
  200              claim.sele cted = fal se;
  201              claim.clai mIdLink =  '/claimDet ail' + cla im.claimId ;
  202           })
  203       );
  204       this.s earchheade rs.append( 'Content-T ype', 'app lication/j son');
  205       const  options2 =  new Reque stOptions( {
  206         head ers: this. searchhead ers,
  207         body : this.ids ,
  208         resp onseType:  ResponseCo ntentType. Text
  209       });
  210       consol e.log(this .ids);
  211       this.a waitingCla imsService
  212         .pri nt(environ ment.nodes erver + '/ claims/pri nt/', opti ons2)
  213         .sub scribe(
  214         data  => {
  215           co nst file =  new Blob( [String.fr omCharCode .apply(nul l, data.da ta)], {
  216              type: 'app lication/p df'
  217           }) ;
  218           co nst fileUr l = URL.cr eateObject URL(file);
  219           co nsole.log(
  220              JSON.strin gify(Strin g.fromChar Code.apply (null, dat a.data))
  221           );
  222           wi ndow.open(
  223              'http:// SERVER.DOA MIN ' +
  224              data.pathN ame.replac e(
  225                '/usr/sh are/tomcat /latest/we bapps/gene ratedRepor ts',
  226                ''
  227              )
  228           );
  229         },
  230         () = > console. log('back  in console ')
  231         );
  232     }
  233     canRerou te(): bool ean {
  234       return  this.clai ms.every(c laim => !c laim.selec ted);
  235     }
  236  
  237     onRerout e() {
  238       const  selectedCl aims = thi s.claims.f ilter(clai m => claim .selected) ;
  239       this.r erouteServ ice.setCla ims(select edClaims);
  240       this.r outer.navi gate(['rer oute']);
  241     }
  242   }