241. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 6/22/2018 9:28:20 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.

241.1 Files compared

# Location File Last Modified
1 REFDOC_2.3_06072018.zip\REFDOC 2.3_06072018\NVCC\SQL NVCC_usp_GetAppts.sql Thu Jun 7 16:53:36 2018 UTC
2 REFDOC_2.3_06072018.zip\REFDOC 2.3_06072018\NVCC\SQL NVCC_usp_GetAppts.sql Fri Jun 22 12:36:31 2018 UTC

241.2 Comparison summary

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

241.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

241.4 Active regular expressions

No regular expressions were active.

241.5 Comparison detail

  1   --DROP PRO CEDURE App .NVCC_usp_ GetAppts
  2  
  3   USE [NWIC_ PanelMgmt]
  4   GO
  5  
  6   SET ANSI_N ULLS ON
  7   GO
  8  
  9   SET QUOTED _IDENTIFIE R ON
  10   GO
  11  
  12   CREATE PRO CEDURE [ap p].[NVCC_u sp_GetAppt s]
  13           --  Add the p arameters  for the st ored proce dure here
  14           @p id bigint  -- this is  the patie ntsid
  15  
  16   -- NOTICE:
  17   -- Do not  edit the s tored proc edure live  on the se rver. Code  to genera te
  18   -- the pro cedures is  stored in  the proje ct reposit ory. Any c hanges mad e
  19   -- that ar e not reco rded in th e reposito ry will be  overwritt en.
  20  
  21   AS
  22   --======== ========== ========== ========== ========== ========== ========== ========== ===
  23   --Requesto r                                : Non Va C oordinated  Care Proj ect
  24   --Author                  : Jerr y Kohler ( Original s cript by D r. Charles  Demosthen es)
  25   --Object/S P Name                  : NVCC_u sp_GetAppt s
  26   --SERVER                                    
D NS . U R        
  27   --Data Bas e                                : NWIC_Pan elMgmt
  28   --Schema                                    : nva
  29   --Report                                    : N/A
  30   --Folder                                    : N/A
  31   --Report L oc             : N/A
  32   --Job                     : None
  33   --Job Loc                 : None
  34   --Note                    : 
  35   --Date Cre ated           : 01-1 2-2016
  36   --
  37   --Last Cha nged           : 03-1 5-2017  
  38   --Last Cha nged By                 : Brian  Diggs - No rthwest In novation C enter (NWI C)
  39   --Reason F or Change               : Change  Appointme ntMadeDate Time to Ap pointmendM adeDate
  40   --                          due  to schema  changes.
  41   --
  42   --Last Cha nged           : 02-1 8-2016  
  43   --Last Cha nged By                 : Jerry  Kohler - N orthwest I nnovation  Center (NW IC)
  44   --Reason F or Change               : Reques t to also  provide th e name of  the statio n.
  45   --
  46   --Last Cha nged           : 01-1 2-2016  
  47   --Last Cha nged By                 : Jerry  Kohler - N orthwest I nnovation  Center (NW IC)
  48   --Reason F or Change               : Remove d station  parameter  in order t o expand t he search
  49   --                          for  a patient' s appointm ents from  a single s tation to  any
  50   --                          stat ion a pati ent is ass ociated wi th.
  51   --
  52   --Purpose                 : Retr ieve a pat ient's app ointments  for inclus ion into N VCC
  53   --                          docu mentation
  54   --======== ========== ========== ========== ========== ========== ========== ========== ===
  55   --Uses: Ap p.udf_Stat ionName
  56   --Uses: CD WWork.Appt .Appointme nt
  57   --Uses: CD WWork.Dim. Location
  58   --Uses: Ap p.udf_AllP atientsSID s
  59   BEGIN
  60      -- SET  NOCOUNT ON  added to  prevent ex tra result  sets from
  61      -- inte rfering wi th SELECT  statements .
  62      SET NOC OUNT ON;
  63  
  64      SELECT  --TOP (100 )
  65         ap.S ta3n
  66        ,App. udf_Statio nName (ap. Sta3n) AS  StationNam e
  67        ,loc. LocationNa me
  68        ,conv ert(varcha r, Appoint mentDateTi me, 101) +  ' ' + con vert(varch ar, Appoin tmentDateT ime, 8) AS  Appointme ntDateTime
  69        ,ap.A ppointment SID
  70        ,ap.P atientSID
  71        ,ap.A ppointment TypeSID
  72        ,desi reddate =
  73         CASE
  74            W hen desire dappointme ntdate is  null
  75            T hen conver t(varchar( 12), cast( dateadd(da y, 1, appo intmentmad edate) as  date), 101 )
  76            E lse conver t(varchar( 12), cast( desiredapp ointmentda te as date ), 101)
  77         END
  78        ,ap.C ancelNoSho wCode
  79        ,ap.L ocationSID , ap.Purpo seOfVisit
  80        ,ap.S chedulingR equestType
  81        ,ap.C ancelDateT ime
  82        ,ap.A ppointment CancelledF lag
  83  
  84      FROM CD WWork.Appt .Appointme nt AS ap
  85      JOIN CD WWork.dim. Location A S loc ON a p.Location SID = loc. LocationSI D
  86      WHERE a p.appointm entdatetim e >= getda te() and a p.appointm entdatetim e < conver t(DATE, da teadd(mm,  6, getdate ()))
  87        AND a p.patients id  in (se lect PTSid  from [App ].[udf_All PatientsSI Ds](@pid)) ;
  88  
  89   END;
  90   GO
  91  
  92   exec dbo.s p_SignAppO bject 'NVC C_usp_GetA ppts'