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

135.1 Files compared

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

135.2 Comparison summary

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

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

135.4 Active regular expressions

No regular expressions were active.

135.5 Comparison detail

  1   USE [NWIC_ PanelMgmt]
  2   GO
  3  
  4   /****** Ob ject:  Sto redProcedu re [app].[ NVCC_usp_G etAllergie s]    Scri pt Date: 1 /12/2016 1 :57:34 PM  ******/
  5   SET ANSI_N ULLS ON
  6   GO
  7  
  8   SET QUOTED _IDENTIFIE R ON
  9   GO
  10  
  11   ALTER PROC EDURE [app ].[NVCC_us p_GetAller gies]
  12          @pi d bigint - - this is  the patien t's databa se sid
  13  
  14   AS
  15   --======== ========== ========== ========== ========== ========== ========== ========== ===
  16   --Requesto r                                : Non Va C oordinated  Care Proj ect
  17   --Author                  : Jerr y Kohler ( Original s cript by D r. Charles  Demosthen es)
  18   --Object/S P Name                  : NVCC_u sp_GetAlle rgies
  19   --SERVER                                    : DNS   DN S.URL         
  20   --Data Bas e                                : NWIC_Pan elMgmt
  21   --Schema                                    : nva
  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 2-2016
  29   --
  30   --Changed                 : 03-0 3-2016  
  31   --Changed  By                 :  Jerry Kohl er - North west Innov ation Cent er (NWIC)
  32   --Reason F or Change               : Elimin ate multip le records  with same  allergen,
  33   --                          only  return th e one with  the lates t verified  date.
  34   --
  35   --Changed                 : 02-1 8-2016  
  36   --Changed  By                 :  Jerry Kohl er - North west Innov ation Cent er (NWIC)
  37   --Reason F or Change               : Reques t to also  provide th e name of  the statio n.
  38   --
  39   --Changed                 : 01-1 2-2016  
  40   --Changed  By                 :  Jerry Kohl er - North west Innov ation Cent er (NWIC)
  41   --Reason F or Change               : Remove d station  parameter  in order t o expand t he search
  42   --                          for  a patient' s allergie s from a s ingle stat ion to any
  43   --                          stat ion a pati ent is ass ociated wi th.
  44   --
  45   --Purpose                 : Retr ieve a pat ient's all ergies for  inclusion  into NVCC
  46   --                          docu mentation
  47   --======== ========== ========== ========== ========== ========== ========== ========== ===
  48   BEGIN
  49  
  50      -- SET  NOCOUNT ON  added to  prevent ex tra result  sets from
  51      -- inte rfering wi th SELECT  statements .
  52      SET NOC OUNT ON;
  53  
  54  
  55      WITH Al lergies AS
  56          (
  57           SE LECT a.Sta 3n
  58                  ,App.u df_Station Name (a.St a3n) AS St ationName
  59                  ,a.All ergySID
  60                  ,a.Pat ientSID
  61                  ,a.Ori ginationDa teTime
  62                  ,a.Ver ificationD ateTime
  63                  ,a.All ergicReact ant as All ergy
  64                  ,ROW_N UMBER() OV ER (PARTIT ION BY a.A llergicRea ctant ORDE R BY a.Ver ificationD ateTime DE SC) AS RN
  65           FR OM CDWWork .Allergy.A llergy a
  66           JO IN CDWWork .Dim.Sta3n  b ON b.St a3n = a.St a3n
  67           WH ERE a.Pati entSID in  (select PT Sid from [ App].[udf_ AllPatient sSIDs](@pi d))
  68              AND a.Ente redInError Flag IS NU LL
  69          )
  70  
  71      SELECT  Sta3n
  72            , StationNam e
  73            , AllergySID
  74            , PatientSID
  75            , Originatio nDateTime
  76            , Verificati onDateTime
  77            , Allergy
  78      FROM Al lergies
  79      WHERE R N = 1
  80      ORDER B Y Allergy
  81      --exec  [app].[NVC C_usp_GetA llergies]  @pid=17174 44
  82   END;