Produced by Araxis Merge on 6/22/2018 9:28:21 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_usp_GetXdwFacility.sql | Thu Jun 7 16:53:36 2018 UTC |
| 2 | REFDOC_2.3_06072018.zip\REFDOC 2.3_06072018\NVCC\SQL | NVCC_usp_GetXdwFacility.sql | Fri Jun 22 12:40:05 2018 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 152 |
| 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 PRO CEDURE App .NVCC_usp_ GetXdwFaci lity | |
| 2 | ||
| 3 | USE NWIC_P anelMgmt | |
| 4 | GO | |
| 5 | ||
| 6 | SET ANSI_N ULLS ON | |
| 7 | GO | |
| 8 | ||
| 9 | SET QUOTED _IDENTIFIE R ON | |
| 10 | GO | |
| 11 | ||
| 12 | CREATE PRO CEDURE App .NVCC_usp_ GetXdwFaci lity | |
| 13 | -- @LCustome rID is fro m CDWWork. LCustomer. LCustomer | |
| 14 | @L CustomerID int | |
| 15 | AS | |
| 16 | --======== ========== ========== ========== ========== ========== ========== ========== ==== | |
| 17 | --Requesto r : Non Va Coordin ated Care Project | |
| 18 | --Author : Bria n Diggs | |
| 19 | --Object/S P Name : NVCC _usp_GetXd wFacility | |
| 20 | --Server :
|
|
| 21 | --Data Bas e : NWIC _PanelMgmt | |
| 22 | --Schema : app | |
| 23 | --Report : N/A | |
| 24 | --Folder : N/A | |
| 25 | --Report L oc : N/A | |
| 26 | --Job : None | |
| 27 | --Job Loc : None | |
| 28 | --Note : | |
| 29 | --Date Cre ated : 2017 -02-14 | |
| 30 | -- | |
| 31 | -- | |
| 32 | --Last Cha nged : | |
| 33 | --Last Cha nged By : | |
| 34 | --Reason F or Change : | |
| 35 | -- | |
| 36 | --Purpose : To g et the sit es for whi ch a user has PHI/PI I access | |
| 37 | --======== ========== ========== ========== ========== ========== ========== ========== ==== | |
| 38 | --Uses: Ap p.udf_Stat ionName | |
| 39 | --Uses: CD WWork.LCus tomer.AllP ermissions | |
| 40 | --Uses: CD WWork.Dim. Sta3n | |
| 41 | ||
| 42 | BEGIN | |
| 43 | SE LECT | |
| 44 | s.St a3n AS Fac ilityID | |
| 45 | ,App .udf_Stati onName(s.S ta3n) AS F acilityNam e | |
| 46 | ,s.V ISNFY17 AS VISN | |
| 47 | ,s.D istrictNum berFY17 AS District | |
| 48 | FR OM CDWWork .LCustomer .AllPermis sions AS a p | |
| 49 | JOIN CDWWork.D im.Sta3n A S s | |
| 50 | ON ap. Sta3n = s. Sta3n | |
| 51 | WH ERE | |
| 52 | ap.L CustomerID = @LCusto merID | |
| 53 | AND ap.PHIPII = 1 | |
| 54 | AND ap.Sta3n > 0 | |
| 55 | AND s.Active = 'Y' | |
| 56 | END | |
| 57 | GO | |
| 58 | ||
| 59 | exec sp_Si gnAppObjec t 'NVCC_us p_GetXdwFa cility'; | |
| 60 | ||
| 61 | ---- Test Cases | |
| 62 | ---- "Norm al" user. | |
| 63 | --exec app .NVCC_usp_ GetXdwFaci lity 51773 | |
| 64 | ---- 3 cha racter sit e code not resolvabl e, no PHI/ PII permis sions | |
| 65 | --exec app .NVCC_usp_ GetXdwFaci lity 18193 8 | |
| 66 | -- -- No s ites, no i nferred si te | |
| 67 | --exec app .NVCC_usp_ GetXdwFaci lity 61151 7 | |
| 68 | ---- No in ferred sit e, many (a ll?) PHIPP I permissi ons on sit es | |
| 69 | --exec app .NVCC_usp_ GetXdwFaci lity 61169 4 | |
| 70 | ---- No in ferred sta 3n, VISH, Region, or District, PHIPII pe srmission on 8 sites in VISN 2 0 | |
| 71 | --exec app .NVCC_usp_ GetXdwFaci lity 13128 | |
| 72 | ---- User who genera ted a Null ReferenceE xception i n User\Use rInfo | |
| 73 | --exec app .NVCC_usp_ GetXdwFaci lity 27947 9 | |
| 74 | ---- blank | |
| 75 | --exec app .NVCC_usp_ GetXdwFaci lity NULL | |
| 76 | ---- Non-e xistant na me | |
| 77 | --exec app .NVCC_usp_ GetXdwFaci lity -20 |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.