153. EPMO Open Source Coordination Office Redaction File Detail Report

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

153.1 Files compared

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

153.2 Comparison summary

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

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

153.4 Active regular expressions

No regular expressions were active.

153.5 Comparison detail

  1   USE [NWIC_ PanelMgmt]
  2   GO
  3  
  4   SET ANSI_N ULLS ON
  5   GO
  6  
  7   SET QUOTED _IDENTIFIE R ON
  8   GO
  9  
  10   CREATE PRO CEDURE [ap p].[NVCC_u sp_GetVisi ts]
  11           --  Add the p arameters  for the st ored proce dure here
  12           @p id bigint  -- this is  the patie ntsid
  13  
  14   AS
  15   --======== ========== ========== ========== ========== ========== ========== ========== ===
  16   --Requesto r                                : Non Va C oordinated  Care Proj ect
  17   --Author                  : Jerr y Kohler -  Northwest  Innovatio n Center ( NWIC)
  18   --Object/S P Name                  : NVCC_u sp_GetVisi ts
  19   --SERVER                                    : DNS   DN S.URL         
  20   --Data Bas e                                : NWIC_Pan elMgmt
  21   --Schema                                    : app
  22   --Report                                    : N/A
  23   --Folder                                    : N/A
  24   --Report L oc             : N/A
  25   --Job                     : None
  26   --Job Loc                 : None
  27   --Note                    : 
  28   --Date Cre ated           : 01-1 4-2016
  29   --Last Cha nged           : 
  30   --Last Cha nged By                 : 
  31   --Reason F or Change               : 
  32   --
  33   --Purpose                 : Retr ieve a pat ient's pri or encount ers for pr ovider
  34   --                          revi ew while c ompiling N VCC docume ntation.   This data
  35   --                          used  to be ret rieved fro m appointm ent data,  but visit
  36   --                          data  is more a ppropriate  since thi s data com es from
  37   --                          enco unters tha t actually  happened.   Appointm ents can b e
  38   --                          canc elled or n o-show.
  39   --======== ========== ========== ========== ========== ========== ========== ========== ===
  40   BEGIN
  41      -- SET  NOCOUNT ON  added to  prevent ex tra result  sets from
  42      -- inte rfering wi th SELECT  statements .
  43      SET NOC OUNT ON;
  44  
  45      SELECT
  46         conv ert(varcha r, VisitDa teTime, 10 1) + ' ' +  convert(v archar, Vi sitDateTim e, 8) AS V isitDateTi me
  47        ,a.St a3n
  48        ,b.In stitutionN ame
  49        ,c.St opCodeName
  50        ,d.Lo cationName
  51        ,e.Ap pointmentT ype
  52        ,f.Ap pointmentS tatus
  53  
  54      FROM CD WWork.Outp at.Visit a
  55      JOIN CD WWork.Dim. Institutio n b on b.I nstitution SID = a.In stitutionS ID
  56      JOIN CD WWork.Dim. StopCode c  on c.Stop CodeSID =  a.PrimaryS topCodeSID
  57      JOIN CD WWork.Dim. Location d  ON d.Loca tionSID =  a.Location SID
  58      JOIN CD WWork.Dim. Appointmen tType e on  e.Appoint mentTypeSI D = a.Appo intmentTyp eSID
  59      JOIN CD WWork.Dim. Appointmen tStatus f  on f.Appoi ntmentStat usSID = a. Appointmen tStatusSID
  60  
  61      WHERE a .VisitDate Time >= co nvert(DATE , dateadd( month, -6,  getdate() ))
  62        AND a .PatientSI D in (sele ct PTSid f rom [App]. [udf_AllPa tientsSIDs ](@pid))
  63  
  64      ORDER B Y a.VisitD ateTime DE SC;
  65   END;
  66  
  67   GO