Produced by Araxis Merge on 8/29/2017 11:27:40 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 | vAppts.sql | Fri Jul 14 21:27:02 2017 UTC |
| 2 | REFDOC-devel-20170714.zip\NVCC\SQL | vAppts.sql | Tue Aug 29 12:39:25 2017 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: Vie w [App].[v Appts] Script Dat e: 1/27/20 16 2:57:01 PM ****** / | |
| 5 | SET ANSI_N ULLS ON | |
| 6 | GO | |
| 7 | ||
| 8 | SET QUOTED _IDENTIFIE R ON | |
| 9 | GO | |
| 10 | ||
| 11 | CREATE VIE W [App].[v Appts] AS | |
| 12 | --======== ========== ========== ========== ========== ========== ========== ========== === | |
| 13 | --Requesto r : Non Va Coordinat ed Care Pr oject | |
| 14 | --Author : Jerr y Kohler | |
| 15 | --Object/S P Name : vGetAppts | |
| 16 | --SERVER : DNS URL | |
| 17 | --Data Bas e : NWIC_P anelMgmt | |
| 18 | --Schema : app | |
| 19 | --Report : N/A | |
| 20 | --Folder : N/A | |
| 21 | --Report L oc : N/A | |
| 22 | --Job : None | |
| 23 | --Job Loc : None | |
| 24 | --Note : | |
| 25 | --Date Cre ated : 01-1 2-2016 | |
| 26 | -- | |
| 27 | --Last Cha nged : 02-1 8-2016 | |
| 28 | --Last Cha nged By : Jerry Kohler - N orthwest I nnovation Center (NW IC) | |
| 29 | --Reason F or Change : Reques t to also provide th e name of the statio n. | |
| 30 | -- | |
| 31 | --Last Cha nged : 01-2 7-2016 | |
| 32 | --Last Cha nged By : Jerry Kohl er - North west Innov ation Cent er (NWIC) | |
| 33 | --Reason F or Change : This view created fr om the sto red proced ure | |
| 34 | -- NVA. GetAppts i n order to facilitat e asynchro nous | |
| 35 | -- proc essing by the applic ation. | |
| 36 | -- | |
| 37 | --Purpose : Retr ieve a pat ient's rec ent appoin tments for inclusion | |
| 38 | -- into NVCC docu mentation | |
| 39 | --======== ========== ========== ========== ========== ========== ========== ========== === | |
| 40 | ||
| 41 | SELECT --T OP (100) | |
| 42 | ap.S ta3n | |
| 43 | ,App. udf_Statio nName (ap. Sta3n) AS StationNam e | |
| 44 | ,loc. LocationNa me | |
| 45 | ,conv ert(varcha r, Appoint mentDateTi me, 101) + ' ' + con vert(varch ar, Appoin tmentDateT ime, 8) AS Appointme ntDateTime | |
| 46 | ,ap.A ppointment SID | |
| 47 | ,ap.P atientSID | |
| 48 | ,ap.A ppointment TypeSID | |
| 49 | ,desi reddate = | |
| 50 | CASE | |
| 51 | W hen desire dappointme ntdate is null | |
| 52 | T hen conver t(varchar( 12), cast( dateadd(da y, 1, appo intmentmad edatetime) as date), 101) | |
| 53 | E lse conver t(varchar( 12), cast( desiredapp ointmentda te as date ), 101) | |
| 54 | END | |
| 55 | ,ap.C ancelNoSho wCode | |
| 56 | ,ap.L ocationSID , ap.Purpo seOfVisit | |
| 57 | ,ap.S chedulingR equestType | |
| 58 | ,ap.C ancelDateT ime | |
| 59 | ,ap.A ppointment CancelledF lag | |
| 60 | ||
| 61 | FROM CDWWo rk.Appt.Ap pointment AS ap | |
| 62 | JOIN CDWWo rk.dim.Loc ation AS l oc ON ap.L ocationSID = loc.Loc ationSID | |
| 63 | WHERE ap.a ppointment datetime > = convert( DATE, date add(mm, 6, getdate() )) | |
| 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.