Produced by Araxis Merge on 6/22/2018 9:28:20 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.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | REFDOC_2.3_06072018.zip\REFDOC 2.3_06072018\NVCC\SQL | NVCC_udf_ActiveUserCount.sql | Thu Jun 7 16:53:36 2018 UTC |
| 2 | REFDOC_2.3_06072018.zip\REFDOC 2.3_06072018\NVCC\SQL | NVCC_udf_ActiveUserCount.sql | Thu Jun 21 20:29:04 2018 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 136 |
| Changed | 1 | 2 |
| Inserted | 0 | 0 |
| Removed | 0 | 0 |
| 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 |
No regular expressions were active.
| 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 :
|
|
| 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'; |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.