Produced by Araxis Merge on 10/26/2017 10:44:47 PM 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 | OSCIF_BMS_v2_iter 2_September_2017.zip\BMS_Cand\Source\Sources\Database\CreationScripts\BMS\4.Stored Procedures | dbo.usp_Filter_Updating_Patients.sql | Wed Oct 18 19:07:02 2017 UTC |
| 2 | OSCIF_BMS_v2_iter 2_September_2017.zip\BMS_Cand\Source\Sources\Database\CreationScripts\BMS\4.Stored Procedures | dbo.usp_Filter_Updating_Patients.sql | Thu Oct 26 19:45:38 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 3 | 94 |
| Changed | 2 | 4 |
| 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 | /****** Ob ject: Sto redProcedu re [dbo].[ usp_Filter _Updating_ Patients] Script Date: 03/2 2/2012 11: 04:49 **** **/ | |
| 2 | IF EXISTS (SELECT * FROM sys. objects WH ERE object _id = OBJE CT_ID(N'[d bo].[usp_F ilter_Upda ting_Patie nts]') AND type in ( N'P', N'PC ')) | |
| 3 | DROP PROCE DURE [dbo] .[usp_Filt er_Updatin g_Patients ] | |
| 4 | GO | |
| 5 | SET ANSI_N ULLS ON | |
| 6 | GO | |
| 7 | SET QUOTED _IDENTIFIE R ON | |
| 8 | GO | |
| 9 | ||
| 10 | -- | |
| 11 | -- ======= ========== ========== ========== ======== | |
| 12 | -- Author : PII | |
| 13 | -- Created date : 08/27/ 2012 | |
| 14 | -- Descrip tion : Gets u pdating pa tients. | |
| 15 | -- ======= ========== ========== ========== ======== | |
| 16 | -- ======= ========== ========== ========== ======== | |
| 17 | -- Update by: PII | |
| 18 | -- Update date: 26.1 0.2012 | |
| 19 | -- Descrip tion: Sepa rated even ts from ac ts. | |
| 20 | -- ======= ========== ========== ========== ======== | |
| 21 | ||
| 22 | CREATE PRO CEDURE [db o].[usp_Fi lter_Updat ing_Patien ts] | |
| 23 | @V ISTA_SITE_ UID UNIQUE IDENTIFIER , | |
| 24 | @D OMAIN_ID N VARCHAR(50 ) | |
| 25 | AS | |
| 26 | BEGIN | |
| 27 | SE T NOCOUNT ON; | |
| 28 | ||
| 29 | SE LECT DISTI NCT P.PATI ENT_UID AS UID | |
| 30 | FR OM | |
| 31 | (SEL ECT PATIEN T_UID | |
| 32 | FROM ADMISSION _EVN | |
| 33 | WHERE HAS_DISCHA RGE = 0 AN D VISTA_SI TE_UID = @ VISTA_SITE _UID | |
| 34 | UNIO N | |
| 35 | SELE CT A.PATIE NT_UID | |
| 36 | FROM ACT AS A | |
| 37 | INNER JOIN WAITI NG_LIST AS WL ON A.I D = WL.ACT _ID | |
| 38 | WHER E WL.VISTA _SITE_UID = @VISTA_S ITE_UID AN D WL.REMOV ED_DATE IS NULL | |
| 39 | UNIO N | |
| 40 | SELE CT A.PATIE NT_UID | |
| 41 | FROM ACT AS A | |
| 42 | INNER JOIN TRANS FER_REQ AS TR ON A.I D = TR.ACT _ID | |
| 43 | LEFT J OIN ACT AS AEVN ON A EVN.PARENT _ACT_ID = TR.ACT_ID | |
| 44 | LEFT J OIN TRANSF ER_EVN AS TE ON TE.A CT_ID = AE VN.ID | |
| 45 | WHER E TR.VISTA _SITE_UID = @VISTA_S ITE_UID AN D TE.ACT_I D IS NULL ) AS P | |
| 46 | ||
| 47 | END | |
| 48 | GO | |
| 49 |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.