Produced by Araxis Merge on 6/22/2018 9:28:22 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 | vConsults.sql | Thu Jun 7 16:53:38 2018 UTC |
| 2 | REFDOC_2.3_06072018.zip\REFDOC 2.3_06072018\NVCC\SQL | vConsults.sql | Fri Jun 22 12:55:04 2018 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 128 |
| 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].[ NVCC_usp_G etConsults ] Scrip t Date: 1/ 12/2016 4: 58:44 PM * *****/ | |
| 5 | SET ANSI_N ULLS ON | |
| 6 | GO | |
| 7 | ||
| 8 | SET QUOTED _IDENTIFIE R ON | |
| 9 | GO | |
| 10 | ||
| 11 | ||
| 12 | CREATE VIE W [App].[v Consults] | |
| 13 | --======== ========== ========== ========== ========== ========== ========== ========== === | |
| 14 | --Requesto r : Non Va Coordinat ed Care Pr oject | |
| 15 | --Author : Jerr y Kohler | |
| 16 | --Object/S P Name : vGetAppts | |
| 17 | --SERVER :
|
|
| 18 | --Data Bas e : NWIC_P anelMgmt | |
| 19 | --Schema : app | |
| 20 | --Report : N/A | |
| 21 | --Folder : N/A | |
| 22 | --Report L oc : N/A | |
| 23 | --Job : None | |
| 24 | --Job Loc : None | |
| 25 | --Note : | |
| 26 | --Date Cre ated : 02-1 8-2016 | |
| 27 | -- | |
| 28 | --Last Cha nged : 02-1 8-2016 | |
| 29 | --Last Cha nged By : Jerry Kohler - N orthwest I nnovation Center (NW IC) | |
| 30 | --Reason F or Change : Reques t to also provide th e name of the statio n. | |
| 31 | -- | |
| 32 | --Purpose : Retr ieve a pat ient's con sults from within th e last 180 | |
| 33 | -- days for inclu sion into NVCC docum entation. | |
| 34 | --======== ========== ========== ========== ========== ========== ========== ========== === | |
| 35 | AS | |
| 36 | SELECT | |
| 37 | c.St a3n | |
| 38 | ,App. udf_Statio nName (c.S ta3n) AS S tationName | |
| 39 | ,c.To RequestSer viceName | |
| 40 | ,cast (c.Request DateTime a s date) AS RequestDa te | |
| 41 | ,c.CP RSStatus | |
| 42 | ,c.CP RSOrderSID | |
| 43 | ,c.Co nsultsid | |
| 44 | , c.ConsultI EN | |
| 45 | ,c.Pa tientSID | |
| 46 | ,c.To RequestSer viceSID | |
| 47 | ,c.Re questType | |
| 48 | , c.OrderSta tusSID | |
| 49 | ,c.Re centActivi tyTypeSID | |
| 50 | ,c.Re centActivi tyType | |
| 51 | , c.SendingS taffSID | |
| 52 | ,c.Ur gency | |
| 53 | ,c.In patOutpat | |
| 54 | , iif(c.Prov isionalDia gnosis is null, ' ', c.Provisi onalDiagno sis) AS Pr ovDx | |
| 55 | , iif(c.Prov isionalDia gnosisCode is null, ' ', c.Pro visionalDi agnosisCod e) AS Prov DxCode | |
| 56 | , c.TIUDocum entSID | |
| 57 | ,c.Ea rliestDate | |
| 58 | ,r.Co nsultReaso n | |
| 59 | FROM CD WWork.Con. Consult c | |
| 60 | JOIN CD WWork.SPat ient.SCons ultReason r ON r.Con sultSID = c.ConsultS ID | |
| 61 | WHERE c .ToRequest ServiceNam e not like 'NON-FORM %' | |
| 62 | A ND c.CPRSS tatus not in ('DISCO NTINUED',' CANCELLED' ,'COMPLETE ') | |
| 63 | AND c .RequestDa teTime >= CAST(datea dd(dd, -18 0, getdate ()) AS DAT E); | |
| 64 | ||
| 65 | GO |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.