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.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | REFDOC-v2.1.0.zip\NVCC\SQL | NVCC_usp_GetPatientbySid.sql | Thu Oct 19 17:37:26 2017 UTC |
| 2 | REFDOC-v2.1.0.zip\NVCC\SQL | NVCC_usp_GetPatientbySid.sql | Wed Nov 8 20:44:22 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 398 |
| Changed | 1 | 2 |
| 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 | 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 | IF (SELECT OBJECT_ID ('App.NVCC _usp_GetPa tientBySid ')) IS NOT NULL | |
| 11 | DROP PROCE DURE App.N VCC_usp_Ge tPatientBy Sid | |
| 12 | GO | |
| 13 | ||
| 14 | CREATE PRO CEDURE [Ap p].[NVCC_u sp_GetPati entBySid] | |
| 15 | @p id int - -PatientSI D | |
| 16 | ||
| 17 | -- NOTICE: | |
| 18 | -- Do not edit the s tored proc edure live on the se rver. Code to genera te | |
| 19 | -- the pro cedures is stored in the proje ct reposit ory. Any c hanges mad e | |
| 20 | -- that ar e not reco rded in th e reposito ry will be overwritt en. | |
| 21 | ||
| 22 | AS | |
| 23 | --======== ========== ========== ========== ========== ========== ========== ========== ==== | |
| 24 | --Requesto r : Non Va Coordin ated Care Project | |
| 25 | --Author : Jon Duckart (O riginal sc ript by Dr . Charles Demosthene s) | |
| 26 | --Object/S P Name : NVCC _usp_GetPa tientBySid | |
| 27 | --Server : DNS DNS. URL | |
| 28 | --Data Bas e : NWIC _PanelMgmt | |
| 29 | --Schema : app | |
| 30 | --Report : N/A | |
| 31 | --Folder : N/A | |
| 32 | --Report L oc : N/A | |
| 33 | --Job : None | |
| 34 | --Job Loc : None | |
| 35 | --Note : | |
| 36 | --Date Cre ated : 04-1 4-2016 | |
| 37 | -- | |
| 38 | --Last Cha nged : 06-2 2-2016 | |
| 39 | --Last Cha nged By : Brian Diggs - No rthwest In novation C enter (NWI C) | |
| 40 | --Reason F or Change : Format ting and i dempotence and signi ng | |
| 41 | -- | |
| 42 | --Purpose : To r etrieve a single pat ient recor d for the NVCC app b y SID. | |
| 43 | --======== ========== ========== ========== ========== ========== ========== ========== ==== | |
| 44 | BEGIN | |
| 45 | -- SET NOCOU NT ON adde d to preve nt extra r esult sets from | |
| 46 | -- interferi ng with SE LECT state ments. | |
| 47 | SET NOC OUNT ON; | |
| 48 | ||
| 49 | SELECT [PatientS ID] | |
| 50 | ,[Pa tientIEN] | |
| 51 | ,[St a3n] as St ation | |
| 52 | ,[Pa tientName] | |
| 53 | ,[Pa tientLastN ame] | |
| 54 | ,[Pa tientFirst Name] | |
| 55 | ,[Pa tientSSN] | |
| 56 | ,[Sc rSSN] | |
| 57 | ,[St reetAddres s1] | |
| 58 | ,[St reetAddres s2] | |
| 59 | ,[St reetAddres s3] | |
| 60 | ,[Ci ty] | |
| 61 | ,[Zi p] | |
| 62 | ,[Zi p4] | |
| 63 | ,[Po stalCode] | |
| 64 | ,[Pr ovince] | |
| 65 | ,[Co untrySID] | |
| 66 | ,[Co untry] | |
| 67 | ,[Ph oneResiden ce] | |
| 68 | ,[Ph oneWork] | |
| 69 | ,[Ph oneCellula r] | |
| 70 | ,[Mo thersMaide nName] | |
| 71 | ,[Da teOfDeath] | |
| 72 | ,[Da teOfDeathT ext] | |
| 73 | ,[Em ailAddress ] | |
| 74 | ,[Ba dAddressIn dicator] | |
| 75 | ,[Ex cludeFromF acilityDir ectoryFlag ] | |
| 76 | ,[Ad dressChang eInstituti onSID] | |
| 77 | ,[Ad dressChang eStaffSID] | |
| 78 | ,[NO KPrimaryCh angeDateTi me] | |
| 79 | ,[NO KPrimaryCh angeVistaE rrorDate] | |
| 80 | ,[NO KPrimaryCh angeDateTi meTransfor mSID] | |
| 81 | ,[NO KSecondary ChangeDate Time] | |
| 82 | ,[NO KSecondary ChangeVist aErrorDate ] | |
| 83 | ,[NO KSecondary ChangeDate TimeTransf ormSID] | |
| 84 | ,[NO KRelations hipToPatie nt] | |
| 85 | ,[NO KDesigneeS ameAsFlag] | |
| 86 | ,[NO KEmergency ContactSam eAsFlag] | |
| 87 | ,[Te mporaryAdd ressActive Flag] | |
| 88 | ,[Te mporaryAdd ressLastEd itedDateTi me] | |
| 89 | ,[Te mporaryAdd ressLastEd itedVistaE rrorDate] | |
| 90 | ,[Te mporaryAdd ressLastEd itedDateTi meTransfor mSID] | |
| 91 | ,[Te mporaryAdd ressChange Institutio nSID] | |
| 92 | ,[Te mporaryAdd ressStartD ate] | |
| 93 | ,[Te mporaryAdd ressStartV istaErrorD ate] | |
| 94 | ,[Te mporaryAdd ressStartD ateTransfo rmSID] | |
| 95 | ,[Te mporaryAdd ressEndDat e] | |
| 96 | ,[Te mporaryAdd ressEndVis taErrorDat e] | |
| 97 | ,[Te mporaryAdd ressEndDat eTransform SID] | |
| 98 | ,[Co nfidential AddressAct iveFlag] | |
| 99 | ,[CD Flag] | |
| 100 | ,[CD DecidedByN ame] | |
| 101 | ,[CD DecisionDa te] | |
| 102 | ,[CD DecisionVi staErrorDa te] | |
| 103 | ,[CD DecisionDa teTransfor mSID] | |
| 104 | ,[CD ReviewedDa te] | |
| 105 | ,[CD ReviewedVi staErrorDa te] | |
| 106 | ,[CD ReviewedDa teTransfor mSID] | |
| 107 | ,[CD Determinin gInstituti onSID] | |
| 108 | ,[CD Determinat ionType] | |
| 109 | ,[Cu rrentPurpl eHeartDeci sionType] | |
| 110 | ,[Cu rrentPurpl eHeartStat us] | |
| 111 | ,[Pu rpleHeartI nstitution SID] | |
| 112 | ,[Me dicaidNumb er] | |
| 113 | ,[Ra ceSID] | |
| 114 | ,[Ge nder] | |
| 115 | ,[Ag e] | |
| 116 | ,[St ateSID] | |
| 117 | ,[St ate] | |
| 118 | ,[Co unty] | |
| 119 | ,[De ceased] | |
| 120 | ,[Pa tientICN] | |
| 121 | ,[Pa tientICNCh ecksum] | |
| 122 | ,[Ps eudoSSNFla g] | |
| 123 | ,[Pe riodOfServ iceSID] | |
| 124 | ,[Pe riodOfServ ice] | |
| 125 | ,[Cu rrentMeans TestStatus SID] | |
| 126 | ,[Ma ritalStatu sSID] | |
| 127 | ,[Ma ritalStatu s] | |
| 128 | ,[Pe rcentServi ceConnect] | |
| 129 | ,[In suranceCov erageFlag] | |
| 130 | ,[Re ligionSID] | |
| 131 | ,[Re ligion] | |
| 132 | ,[Ag entOrangeE xposureFla g] | |
| 133 | ,[Ag entOrangeL ocationCod e] | |
| 134 | ,[Ra diationExp osureCode] | |
| 135 | ,[Io nizingRadi ationExpos ureFlag] | |
| 136 | ,[SH ADFlag] | |
| 137 | ,[Ve teranFlag] | |
| 138 | ,[Co mbatFlag] | |
| 139 | ,[Co mbatEligib ilityEndDa te] | |
| 140 | ,[Co mbatEligib ilityEndVi staErrorDa te] | |
| 141 | ,[Co mbatEligib ilityEndDa teTransfor mSID] | |
| 142 | ,[Te stPatientF lag] | |
| 143 | ,[CD WPossibleT estPatient Flag] | |
| 144 | ,[Sp inalCordIn juryType] | |
| 145 | ,[En teredIntoF ileDate] | |
| 146 | ,[En teredIntoF ileVistaEr rorDate] | |
| 147 | ,[En teredIntoF ileDateTra nsformSID] | |
| 148 | ,[Em ergencyRes ponseIndic ator] | |
| 149 | ,[El igibilityS ID] | |
| 150 | ,[El igibility] | |
| 151 | ,[El igibilityV ACode] | |
| 152 | ,[Da teOfBirth] | |
| 153 | ,[Da teOfBirthT ext] | |
| 154 | ,[Se nsitiveFla g] | |
| 155 | ,[La stServiceE ntryDate] | |
| 156 | ,[La stServiceE ntryVistaE rrorDate] | |
| 157 | ,[La stServiceE ntryDateTr ansformSID ] | |
| 158 | ,[La stServiceS eparationD ate] | |
| 159 | ,[La stServiceS eparationV istaErrorD ate] | |
| 160 | ,[La stServiceS eparationD ateTransfo rmSID] | |
| 161 | ,[Pr eferredIns titutionSI D] | |
| 162 | ,[PO WFlag] | |
| 163 | ,[PO WLocationS ID] | |
| 164 | ,[PO WFromVista Date] | |
| 165 | ,[PO WToVistaDa te] | |
| 166 | ,[Co mbatFromVi staDate] | |
| 167 | ,[Co mbatToVist aDate] | |
| 168 | ,[Cl aimNumber] | |
| 169 | ,[Ro omBedSID] | |
| 170 | ,[In eligibleDa te] | |
| 171 | ,[In eligibleVi staErrorDa te] | |
| 172 | ,[In eligibleDa teTransfor mSID] | |
| 173 | ,[In eligibleRe ason] | |
| 174 | ,[El igibilityS tatus] | |
| 175 | ,[El igibilityV erificatio nSource] | |
| 176 | ,[GI SLocatorNa me] | |
| 177 | ,[GI SMatchStat usCode] | |
| 178 | ,[GI SMatchScor e] | |
| 179 | ,[GI SMatchMeth odCode] | |
| 180 | ,[GI SMatchedAd dress] | |
| 181 | ,[GI SAddressTy pe] | |
| 182 | ,[GI SStreetSid e] | |
| 183 | ,[GI SPatientAd dressLongi tude] | |
| 184 | ,[GI SPatientAd dressLatit ude] | |
| 185 | ,[GI SAddressUp datedDate] | |
| 186 | ,[GI SFIPSCode] | |
| 187 | ,[GI SMarket] | |
| 188 | ,[GI SSubmarket ] | |
| 189 | ,[GI SSector] | |
| 190 | ,[GI SURH] | |
| 191 | ,[GI SCongressD istrict] | |
| 192 | FROM C DWWork.SPa tient.SPat ient | |
| 193 | WH ERE | |
| 194 | Pati entSid= @p id | |
| 195 | AND patientnam e <>'*Unkn own at thi s time*' | |
| 196 | AND patientnam e is not n ull; | |
| 197 | END; | |
| 198 | GO | |
| 199 | ||
| 200 | EXEC sp_Si gnAppObjec t 'NVCC_us p_GetPatie ntBySid'; |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.