Produced by Araxis Merge on 8/29/2017 11:27:39 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-devel-20170714.zip\NVCC\SQL | RebuildSensitiveDxCodesTable.sql | Fri Jul 14 21:27:02 2017 UTC |
| 2 | REFDOC-devel-20170714.zip\NVCC\SQL | RebuildSensitiveDxCodesTable.sql | Tue Aug 29 12:19:06 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 174 |
| 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 | USE [NWIC_ PanelMgmt] | |
| 2 | GO | |
| 3 | ||
| 4 | /****** Ob ject: Sto redProcedu re [app].[ RebuildNVC C_Sensitiv eDxCodesTa ble] Sc ript Date: 1/21/2016 ******/ | |
| 5 | SET ANSI_N ULLS ON | |
| 6 | GO | |
| 7 | ||
| 8 | SET QUOTED _IDENTIFIE R ON | |
| 9 | GO | |
| 10 | ||
| 11 | CREATE PRO CEDURE [ap p].[NVCC_R ebuild_Sen sitiveDxCo desTable] | |
| 12 | ||
| 13 | AS | |
| 14 | --======== ========== ========== ========== ========== ========== ========== ========== === | |
| 15 | --Requesto r : Non Va Coordin ated Care Project | |
| 16 | --Author : Jerr y Kohler | |
| 17 | --Object/S P Name : Rebu ild_Sensit iveDxCodes Table | |
| 18 | --Server : DNS DNS. URL | |
| 19 | --Data Bas e : NWIC _PanelMgmt | |
| 20 | --Schema : app | |
| 21 | --Report : N/A | |
| 22 | --Folder : N/A | |
| 23 | --Report L oc : N/A | |
| 24 | --Job : None | |
| 25 | --Job Loc : None | |
| 26 | --Note : | |
| 27 | --Date Cre ated : 01-2 1-2016 | |
| 28 | -- | |
| 29 | --Changed : | |
| 30 | --Changed By : | |
| 31 | --Reason F or Change : | |
| 32 | -- | |
| 33 | -- | |
| 34 | --Purpose : Rebu ild table app.NVCC_S ensitiveDx Codes, an intermedia ry | |
| 35 | -- cach e of sensi tive diagn ostic code s to impro ve NVCC | |
| 36 | -- appl ication pe rformance by elimina ting the n eed for a | |
| 37 | -- sepa rate step to obtain the ICD co de SIDS. | |
| 38 | --======== ========== ========== ========== ========== ========== ========== ========== === | |
| 39 | BEGIN | |
| 40 | ||
| 41 | SET NOC OUNT ON; | |
| 42 | ||
| 43 | IF (SEL ECT OBJECT _ID('app.N VCC_Sensit iveDxCodes ', 'U')) I S NOT NULL | |
| 44 | DROP TABLE app .NVCC_Sens itiveDxCod es | |
| 45 | ||
| 46 | CREATE TABLE [app ].[NVCC_Se nsitiveDxC odes]( | |
| 47 | [CodingSy stem] [va rchar](12) NOT NULL, | |
| 48 | [Sta3n] [sm allint] NU LL, | |
| 49 | [ICDSID] [in t] NULL, | |
| 50 | [Code] [va rchar](12) NOT NULL, | |
| 51 | [Diagnosi sText] [va rchar](255 ) NOT NULL , | |
| 52 | [AbuseDx] [in t] NULL, | |
| 53 | [SickleDx ] [in t] NULL, | |
| 54 | [HIVDx] [in t] NULL | |
| 55 | ) ON [D efFG] WITH (DATA_COM PRESSION = PAGE) | |
| 56 | ||
| 57 | CREATE UNIQUE CLU STERED IND EX [NVCC_S ensitiveDx Codes_ICDS ID] | |
| 58 | ON [app ].[NVCC_Se nsitiveDxC odes] (ICD SID ASC) | |
| 59 | WITH (S ORT_IN_TEM PDB = ON, ONLINE = O FF, FILLFA CTOR = 95, DATA_COMP RESSION = PAGE) | |
| 60 | ON [Def FG] | |
| 61 | ||
| 62 | INSERT INTO app.N VCC_Sensit iveDxCodes (CodingSy stem, Sta3 n, ICDSID, Code, Dia gnosisText , AbuseDx, SickleDx, HIVDx) | |
| 63 | SELECT c.CodingSy stem | |
| 64 | ,i.Sta3 n | |
| 65 | ,i.ICDS ID | |
| 66 | ,c.Code | |
| 67 | ,i.ICDD iagnosisTe xt | |
| 68 | ,c.Abus eDx | |
| 69 | ,c.Sick leDx | |
| 70 | ,c.HIVD x | |
| 71 | FROM [A pp].[NVCC_ SensitiveD xBaseCodes ] c | |
| 72 | INNER J OIN PanelM gmt.vICD A S i ON c.C ode = i.IC DCode | |
| 73 | ||
| 74 | ||
| 75 | CREATE UNIQUE NON CLUSTERED INDEX [NVC C_Sensitiv eDxCodes_S ta3n_ICDCo de] | |
| 76 | ON [app ].[NVCC_Se nsitiveDxC odes] (Sta 3n, Code) | |
| 77 | INCLUDE (Diagnosi sText, Abu seDx, Sick leDx, HIVD x) | |
| 78 | WITH (S ORT_IN_TEM PDB = ON, ONLINE = O FF, FILLFA CTOR = 95, DATA_COMP RESSION = PAGE) | |
| 79 | ON [Def FG] | |
| 80 | ||
| 81 | --select d istinct St a3n from a pp.NVCC_Se nsitiveDxC odes order by Sta3n | |
| 82 | --select c ode,count( *) from ap p.NVCC_Sen sitiveDxCo des group by code or der by cod e | |
| 83 | ||
| 84 | END | |
| 85 | ||
| 86 | ||
| 87 | ||
| 88 | GO |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.