133. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 11/9/2017 10:44:48 AM Eastern 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.

133.1 Files compared

# Location File Last Modified
1 REFDOC-v2.1.0.zip\NVCC\SQL NVCC_udf_ActiveUserCount.sql Thu Oct 19 17:37:26 2017 UTC
2 REFDOC-v2.1.0.zip\NVCC\SQL NVCC_udf_ActiveUserCount.sql Wed Nov 8 19:27:21 2017 UTC

133.2 Comparison summary

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

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

133.4 Active regular expressions

No regular expressions were active.

133.5 Comparison detail

  1   --DROP FUN CTION App. NVCC_udf_A ctiveUserC ount
  2   USE NWIC_P anelMgmt
  3   GO
  4  
  5   SET ANSI_N ULLS ON
  6   GO
  7  
  8   SET QUOTED _IDENTIFIE R ON
  9   GO
  10  
  11   CREATE FUN CTION App. NVCC_udf_A ctiveUserC ount ()
  12   RETURNS @A ctiveUserC ount TABLE
  13   (
  14           St ation varc har(50) NO T NULL,
  15           Ac tiveUsers  int NOT NU LL
  16   )
  17   AS
  18   --======== ========== ========== ========== ========== ========== ========== ========== ====
  19   --Requesto r              : Non  Va Coordin ated Care  Project
  20   --Author                  : Bria n Diggs
  21   --Object/S P Name         : NVCC _udf_Activ eUserCount
  22   --Server                  :  DNS  DNS.U RL         
  23   --Data Bas e              : NWIC _PanelMgmt
  24   --Schema                  : app
  25   --Report                  : N/A
  26   --Folder                  : N/A
  27   --Report L oc             : N/A
  28   --Job                     : None
  29   --Job Loc                 : None
  30   --Note                    : 
  31   --Date Cre ated           : 08-0 2-2016
  32   --
  33   --
  34   --Last Cha nged           : 
  35   --Last Cha nged By                 : 
  36   --Reason F or Change               : 
  37   --
  38   --Purpose                 : To c ount the n umber of " active" us ers.
  39   --======== ========== ========== ========== ========== ========== ========== ========== ====
  40   --Uses: NW IC_PanelMg mt.App.udf _StationNa me
  41   --Uses: NW IC_PanelMg mt.App.vNV CC_Product ionAccessL og
  42   --Uses: CD WWork.Pati ent.Patien t
  43  
  44   -- NOTICE:
  45   -- Do not  edit the f unction li ve on the  server. Co de to gene rate
  46   -- the pro cedures is  stored in  the proje ct reposit ory. Any c hanges mad e
  47   -- that ar e not reco rded in th e reposito ry will be  overwritt en.
  48   BEGIN
  49           IN SERT @Acti veUserCoun t
  50           SE LECT
  51                    App. udf_Statio nName(Sta3 n) AS Stat ion,
  52                    COUN T(*) AS Ac tiveUsers
  53           FR OM (
  54                    SELE CT al.User ID, p.Sta3 n
  55                    FROM
  56                             NWIC_P anelMgmt.A pp.vNVCC_P roductionA ccessLog a l
  57                             INNER  JOIN CDWWo rk.Patient .Patient p
  58                                      ON al.Pa tientSID =  p.Patient SID
  59                    WHER E AccessDa teTime > d ateadd(day , -30, con vert(date,  getutcdat e()))
  60                    GROU P BY al.Us erID, p.St a3n
  61                    HAVI NG COUNT(* ) >= 10
  62           )  AS U
  63           GR OUP BY U.S ta3n
  64   --      OR DER BY Act iveUsers D ESC
  65           RE TURN
  66   END;
  67   GO
  68  
  69   exec sp_Si gnAppObjec t 'NVCC_ud f_ActiveUs erCount';