139. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 11/9/2017 10:44:48 AM Eastern 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.

139.1 Files compared

# Location File Last Modified
1 REFDOC-v2.1.0.zip\NVCC\SQL NVCC_usp_GetConsultsRdw.sql Thu Oct 19 17:37:26 2017 UTC
2 REFDOC-v2.1.0.zip\NVCC\SQL NVCC_usp_GetConsultsRdw.sql Wed Nov 8 20:43:02 2017 UTC

139.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 2 166
Changed 1 2
Inserted 0 0
Removed 0 0

139.3 Comparison options

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

139.4 Active regular expressions

No regular expressions were active.

139.5 Comparison detail

  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   ALTER PROC EDURE [app ].[NVCC_us p_GetConsu lts]
  13           --  Add the p arameters  for the st ored proce dure here
  14           @p id bigint  -- this is  the patie ntsid
  15  
  16   AS
  17   --======== ========== ========== ========== ========== ========== ========== ========== ===
  18   --Requesto r                                : Non Va C oordinated  Care Proj ect
  19   --Author                  : Jerr y Kohler ( Original s cript by D r. Charles  Demosthen es)
  20   --Object/S P Name                  : NVCC_u sp_GetCons ults
  21   --SERVER                                    : DNS   DN S.URL         
  22   --Data Bas e                                : NWIC_Pan elMgmt
  23   --Schema                                    : app
  24   --Report                                    : N/A
  25   --Folder                                    : N/A
  26   --Report L oc             : N/A
  27   --Job                     : None
  28   --Job Loc                 : None
  29   --Note                    : 
  30   --Date Cre ated           : 01-1 2-2016
  31   --Last Cha nged           : 01-1 2-2016  
  32   --Last Cha nged By                 : Jerry  Kohler - N orthwest I nnovation  Center (NW IC)
  33   --Reason F or Change               : Remove d station  parameter  in order t o expand t he search
  34   --                          for  a patient' s consults  from a si ngle stati on to any
  35   --                          stat ion a pati ent is ass ociated wi th.
  36   --
  37   --Purpose                 : Retr ieve a pat ient's con sults from  within th e last 180
  38   --                          days  for inclu sion into  NVCC docum entation.
  39   --======== ========== ========== ========== ========== ========== ========== ========== ===
  40  
  41   BEGIN
  42      -- SET  NOCOUNT ON  added to  prevent ex tra result  sets from
  43      -- inte rfering wi th SELECT  statements .
  44      SET NOC OUNT ON;
  45  
  46      SELECT
  47         c.St a3n
  48        ,App. udf_Statio nName (c.S ta3n) AS S tationName
  49        ,c.To RequestSer viceName
  50        ,cast (c.Request DateTime a s date) AS  RequestDa te
  51        ,c.CP RSStatus
  52        ,c.CP RSOrderSID
  53        ,c.Co nsultsid
  54            , c.ConsultI EN
  55        ,c.Pa tientSID
  56        ,c.To RequestSer viceSID
  57        ,c.Re questType
  58            , c.OrderSta tusSID
  59        ,c.Re centActivi tyTypeSID
  60        ,c.Re centActivi tyType
  61            , c.SendingS taffSID
  62        ,c.Ur gency
  63        ,c.In patOutpat
  64            , iif(c.Prov isionalDia gnosis is  null, ' ',  c.Provisi onalDiagno sis) AS Pr ovDx
  65            , iif(c.Prov isionalDia gnosisCode  is null,  ' ', c.Pro visionalDi agnosisCod e) AS Prov DxCode
  66            , c.TIUDocum entSID
  67        ,c.Ea rliestDate
  68        ,r.Co nsultReaso n
  69            , l.Location Name as Fr omService
  70            ,  st.StaffN ame as Req uestingPro vider
  71      FROM RD WWork.Con. Consult c
  72      JOIN RD WWork.SPat ient.SCons ultReason  r ON r.Con sultSID =  c.ConsultS ID
  73      join RD WWork.dim. Location l
  74           on  l.Locatio nSID=c.Fro mLocationS ID
  75           jo in RDWWork .SStaff.SS taff st
  76           on  st.StaffS id=c.Sendi ngStaffSID
  77      WHERE c .ToRequest ServiceNam e not like  'NON-FORM %' 
  78            A ND c.CPRSS tatus not  in ('DISCO NTINUED',' CANCELLED' ,'COMPLETE ') 
  79            A ND c.patie ntsid in ( select PTS id from [A pp].[udf_A llPatients SIDs](@pid ))
  80        AND c .RequestDa teTime >=  CAST(datea dd(dd, -18 0, getdate ()) AS DAT E)
  81      ORDER B Y c.reques tdatetime;
  82   END
  83  
  84   GO