Produced by Araxis Merge on 1/31/2018 9:02:08 AM Central 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.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | NVCC_2.2_01162018.zip\NVCC\Database\App\Stored Procedures | NVCC_usp_UpdateProductionLog.sql | Thu Oct 19 16:36:38 2017 UTC |
| 2 | NVCC_2.2_01162018.zip\NVCC\Database\App\Stored Procedures | NVCC_usp_UpdateProductionLog.sql | Mon Jan 29 17:19:36 2018 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 4 | 132 |
| Changed | 3 | 8 |
| 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 | ||
| 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 ('V HA20\ DNS DUCKAJ', ' VHA20\ USER ', 'VHA20\ USER ', 'VHA20\ DNS KOHLEG', ' VHA20\ USE R
|
|
| 59 | AND al.UserID IS NOT NUL L | |
| 60 | AND ( | |
| 61 | al.HostNam e = ' SERVER . 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 = ' SERVER . URL ' AND Acce ssDateTime BETWEEN ' 2016-10-19 ' AND '201 6-11-15') | |
| 64 | OR al.Host Name = 'va ww.refdoc. DNS ' --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 |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.