2. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 6/22/2018 9:27:11 AM Eastern 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.

2.1 Files compared

# Location File Last Modified
1 REFDOC_2.3_06072018.zip\REFDOC 2.3_06072018\NVCC\Database\App\Stored Procedures NVCC_usp_UpdateProductionLog.sql Thu Jun 7 16:53:10 2018 UTC
2 REFDOC_2.3_06072018.zip\REFDOC 2.3_06072018\NVCC\Database\App\Stored Procedures NVCC_usp_UpdateProductionLog.sql Thu Jun 21 18:42:34 2018 UTC

2.2 Comparison summary

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

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

2.4 Active regular expressions

No regular expressions were active.

2.5 Comparison detail

  1  
  2   CREATE PRO CEDURE App .NVCC_usp_ UpdateProd uctionLog
  3  
  4   -- NOTICE:
  5   -- Do not  edit the s tored proc edure live  on the se rver. Code  to genera te
  6   -- the pro cedures is  stored in  the proje ct reposit ory. Any c hanges mad e
  7   -- that ar e not reco rded in th e reposito ry will be  overwritt en.
  8  
  9   AS
  10   --======== ========== ========== ========== ========== ========== ========== ========== ====
  11   --Requesto r              : Non  Va Coordin ated Care  Project
  12   --Author                  : Bria n Diggs
  13   --Object/S P Name         : App. NVCC_usp_U pdateProdu ctionLog
  14   --Server                  : 
  15   --Data Bas e              : CC_R EFDOC
  16   --Schema                  : App
  17   --Report                  : N/A
  18   --Folder                  : N/A
  19   --Report L oc             : N/A
  20   --Job                     : None
  21   --Job Loc                 : None
  22   --Note                    : 
  23   --Date Cre ated           : 2017 -07-21
  24   --
  25   --Last Cha nged           : 2017 -08-01
  26   --Last Cha nged By                 : Brian  Diggs
  27   --Reason F or Change               : Explic it check t hat Access DateTime i s not null
  28   --                          and  UserID and  HostName  (to elimin ate possib le
  29   --                          NULL  predicate s)
  30   --
  31   --Purpose                 : Proc edure to b e run peri odically t o update t he table
  32   --                          NVCC _Productio nLog from  the table  NVCC_Acces sLog
  33   --                          base d on the c riteria of  what is c onsidered  to be a
  34   --                          pack age create d in the p roduction  environmen t
  35   --
  36   --                          NVCC _Productio nLog is a  non-normal ized set o f data
  37   --                          (sin ce it can  be defined  based on  the conten ts of
  38   --                          NVCC _AccessLog ) that is  indexed/op timized fo r reportin g
  39   --======== ========== ========== ========== ========== ========== ========== ========== ====
  40  
  41   BEGIN
  42           DE CLARE @Las tID int;
  43           SE LECT @Last ID = MAX(A ccessLogID ) FROM App .NVCC_Prod uctionLog
  44  
  45           IN SERT INTO  App.NVCC_P roductionL og
  46           SE LECT
  47                    al.A ccessLogID ,
  48                    al.U serID,
  49                    al.A ccessDateT ime,
  50                    al.P atientSID,
  51                    p.Pa tientICN,
  52                    p.St a3n
  53           FR OM
  54                    App. NVCC_Acces sLog al
  55                    INNE R JOIN CDW Work.Patie nt.Patient  p
  56                             ON al. PatientSID  = p.Patie ntSID
  57           WH ERE
  58                     al.UserID  NOT IN (' DNS \ DNS     DUCKAJ', ' DNS \
D NS ', ' DNS \ D N S ', ' DNS \ DNS     KOHLEG', ' DNS \ DNS     MCCONJ') 
  59                    AND  al.UserID  IS NOT NUL L
  60                    AND  (
  61                              al.HostNam e = ' URL         ' OR
  62                             --dev. nwic was b eing used  to host us ers who co uld not co vert to th e VIA vers ion during  these dat es
  63                               (al.HostNa me = ' URL         ' AND Acce ssDateTime  BETWEEN ' 2016-10-19 ' AND '201 6-11-15')
  64                              OR al.Host Name = ' URL ' --the EW IS hosted  national p roduction  site
  65                    )
  66                    AND  al.HostNam e IS NOT N ULL
  67                    AND  AccessDate Time IS NO T NULL
  68                    AND  al.Action  = 'PDF'
  69                    AND  ((AccessLo gID > @Las tID) OR (@ LastID IS  NULL))
  70   END