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_UniqueVeterans.sql | Thu Jun 7 16:53:36 2018 UTC |
| 2 | REFDOC_2.3_06072018.zip\REFDOC 2.3_06072018\NVCC\SQL | NVCC_usp_UniqueVeterans.sql | Fri Jun 22 12:42:09 2018 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 178 |
| 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_ UniqueVete rans | |
| 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_ UniqueVete rans | |
| 13 | ||
| 14 | -- NOTICE: | |
| 15 | -- Do not edit the s tored proc edure live on the se rver. Code to genera te | |
| 16 | -- the pro cedures is stored in the proje ct reposit ory. Any c hanges mad e | |
| 17 | -- that ar e not reco rded in th e reposito ry will be overwritt en. | |
| 18 | ||
| 19 | AS | |
| 20 | --======== ========== ========== ========== ========== ========== ========== ========== ==== | |
| 21 | --Requesto r : Non Va Coordin ated Care Project | |
| 22 | --Author : Bria n Diggs | |
| 23 | --Object/S P Name : App. NVCC_usp_U niqueVeter ans | |
| 24 | --Server :
|
|
| 25 | --Data Bas e : NWIC _PanelMgmt | |
| 26 | --Schema : app | |
| 27 | --Report : N/A | |
| 28 | --Folder : N/A | |
| 29 | --Report L oc : N/A | |
| 30 | --Job : None | |
| 31 | --Job Loc : None | |
| 32 | --Note : | |
| 33 | --Date Cre ated : 11-0 2-2016 | |
| 34 | -- | |
| 35 | --Last Cha nged : | |
| 36 | --Last Cha nged By : | |
| 37 | --Reason F or Change : | |
| 38 | -- | |
| 39 | --Purpose : To g et aggrega ted counts of RDPs a nd unique veterans a t | |
| 40 | -- stat ion and VI SN levels of aggrega tion | |
| 41 | --======== ========== ========== ========== ========== ========== ========== ========== ==== | |
| 42 | ||
| 43 | BEGIN | |
| 44 | SE LECT | |
| 45 | Pati entIEN, p. Sta3n, VIS NFY17 | |
| 46 | IN TO #TMP | |
| 47 | FR OM | |
| 48 | App. vNVCC_Prod uctionAcce ssLog al | |
| 49 | INNE R JOIN CDW Work.Patie nt.Patient p | |
| 50 | ON al. PatientSID = p.Patie ntSID | |
| 51 | INNE R JOIN CDW Work.Dim.S ta3n s | |
| 52 | ON p.S ta3n = s.S ta3n | |
| 53 | ||
| 54 | SE LECT | |
| 55 | ROW_ NUMBER() O VER (ORDER BY VISNFY 17, Sta3n) AS ID, | |
| 56 | VISN FY17, | |
| 57 | App. udf_Statio nName(Sta3 n) AS Stat ion, | |
| 58 | RDP, | |
| 59 | Uniq ueVeterans | |
| 60 | FR OM ( | |
| 61 | SELE CT | |
| 62 | VISNFY 17, | |
| 63 | Sta3n, | |
| 64 | count( *) AS RDP, | |
| 65 | count( distinct P atientIEN) AS Unique Veterans | |
| 66 | FROM #TMP | |
| 67 | GROU P BY Sta3n , VISNFY17 | |
| 68 | UNIO N | |
| 69 | SELE CT | |
| 70 | VISNFY 17, | |
| 71 | NULL A S Sta3n, | |
| 72 | count( *) AS RDP, | |
| 73 | count( distinct P atientIEN) AS Unique Veterans | |
| 74 | FROM #TMP | |
| 75 | GROU P BY VISNF Y17 | |
| 76 | UNIO N | |
| 77 | SELE CT | |
| 78 | NULL A S VISNFY17 , | |
| 79 | NULL A S Sta3n, | |
| 80 | count( *) AS RDP, | |
| 81 | count( distinct P atientIEN) AS Unique Veterans | |
| 82 | FROM #TMP | |
| 83 | ) A | |
| 84 | OR DER BY VIS NFY17, Sta 3n | |
| 85 | ||
| 86 | DR OP TABLE # TMP | |
| 87 | END | |
| 88 | GO | |
| 89 | ||
| 90 | EXEC dbo.s p_SignAppO bject 'NVC C_usp_Uniq ueVeterans '; |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.