Version 11 (modified by 12 years ago) ( diff ) | ,
---|
The PATS mappings are split into text and numeric fields.
Text Fields
Text fields are mapped to the i2b2 Observation Fact table like this
i2b2 Field | Source |
Encounter_Num | i2b2 Patient ID |
Patient_Num | i2b2 PatientID |
Concept_Cd | Enum lookup value (see below) |
Provider_Id | "@" |
Start_Date | The source table observation date field (see below) |
Modifier_Cd | "@" |
ValType_Cd | "T" (text) |
Units_Cd | "@" |
Location_Cd | "@" |
Update_Date | The current date using the GETDATE() Function |
SourceSystem_Cd | "BRICCS" |
Upload_Id | "1" |
SOMETIME (RB): Convert Update_Date to use a date parameter. It's just a little quicker.
SOMETIME (RB): Should the SourceSystem_Cd not be "PATS"? Or maybe "MINAP" or whatever.
SOMETIME (RB): The Upload_Id is presumably always one because everything is reloaded each time. Might be nice to change this to something more meaningful.
Enum Lookup Value
The Concept Code to use is found in the table DATA_DICTIONARY_ENUM_VALUES in the DWBRICCS database on UHLDWH server. This table contains records for concept code keyed on source table name, column name and column value. NULL column values may be mapped to the field '(empty)'.
ACTION (RB): Check if all possible values of column value contain a mapping in the DATA_DICTIONARY_ENUM_VALUES table.
Source Table Observation Date Field
For each source table in the there is a single field that is used as the start date for all columns from that field. The observation date field to use for each table is stored in the pats_tables table in the DWBRICS on the UHLDWH server.
Numeric Fields
Numeric fields are mapped to the i2b2 Observation Fact table like this
i2b2 Field | Source |
Encounter_Num | i2b2 Patient ID |
Patient_Num | i2b2 PatientID |
Concept_Cd | "PTS:{TABLE_NAME}_{COLUMN_ID}" |
Provider_Id | "@" |
Start_Date | The source table observation date field (see above) |
Modifier_Cd | "@" |
ValType_Cd | "N" (numeric) |
TVal_Char | "E" (see below) |
Units_Cd | Value calculated by ufn_get_units function (see below) |
Location_Cd | "@" |
Update_Date | The current date using the GETDATE() Function |
SourceSystem_Cd | "BRICCS" |
Upload_Id | "1" |
TVal_Char
The TVal_Char describes the meaning of the value contained in the NVal_Num field.
For all values currently the value of TVal_Char is set to "E", which means equals. That is, the value in the NVal_Num field is the result of the test. All possible values of TVal_Char are:
Value | Meaning |
E | Equals |
NE | Not Equal |
L | Less Than |
LE | Less Than or Equals |
G | Greater Than |
GE | Greater Than or Equals |
From a casual look at the data, I think that a value of less than X, or greater than Y is sometimes used for Pathology data.
ufn_get_units Function
The function ufn_get_units in the DWBRICCS database is called with parameters of table_name and field_name to determine the units.
ACTION (RB): Work out what this function actually does and then move the logic into a join if possible. This should be clearer and also quicker.
Tables
CATH_CATHINITIALVW
Field Name | Column ID | Type | Comments |
EntryId | 1 | int | |
PatientId | 2 | int | |
DateofCatheter | 3 | date | |
TimeofCatheter | 4 | time | |
EntryStatus | 5 | varchar | |
PreviousEntry | 6 | int | |
NextEntry | 7 | int | |
DateOfAdmission | 8 | date | |
AgeAtCatheter | 9 | int | |
DoneInMobileLab | 10 | varchar | |
Consultant | 11 | varchar | |
Operator | 12 | varchar | |
SecondOperator | 13 | varchar | |
Technician | 14 | varchar | |
PatientType | 15 | varchar | |
WasThePatientCatheterised | 16 | varchar | |
ProcedureType | 17 | varchar | |
GeneralAnaesthetics | 18 | varchar | |
ProcedureSite | 19 | varchar | |
BiopsyTaken | 20 | varchar | |
BiopsySite | 21 | varchar | |
OtherProcedure | 22 | varchar | |
Arterial_1 | 23 | varchar | |
Vessel_1_Arterial | 24 | varchar | |
Complicated_1_Arterial | 25 | varchar | |
Arterial_2 | 26 | varchar | |
Vessel_2_Arterial | 27 | varchar | |
Complicated2Arterial | 28 | varchar | |
Arterial_3 | 29 | varchar | |
Vessel_3_Arterial | 30 | varchar | |
Complicated_3_Arterial | 31 | varchar | |
Venous_1 | 32 | varchar | |
Vessel_1_Venous | 33 | varchar | |
Complicated_1_Venous | 34 | varchar | |
Venous_2 | 35 | varchar | |
Vessel_2_Venous | 36 | varchar | |
Complicated_2_Venous | 37 | varchar | |
Venous_3 | 38 | varchar | |
Vessel_3_Venous | 39 | varchar | |
Complicated_3_Venous | 40 | varchar | |
Vessels | 41 | varchar | |
ReturnedTo | 42 | varchar | |
FurtherProcedure | 43 | varchar | |
ImmediateComplications | 44 | varchar | |
ProcedureAbandoned | 45 | varchar | |
ReasonForAbandoningProcedure | 46 | varchar | |
OtherComplications | 47 | varchar | |
DiedInCathLab | 48 | varchar | |
CoronaryDisease | 49 | varchar | |
SignificantValveDisease | 50 | varchar | |
SignificantLvDisease | 51 | varchar | |
Outcome | 52 | varchar | |
ReturnToCathLab | 53 | varchar | |
EmbolicSequelae | 54 | varchar | |
NonEmergencySurgery | 55 | varchar | |
GroinComplication | 56 | varchar | |
Death | 57 | varchar | |
DischargeComplications | 58 | varchar | |
OutcomeOfCatheter | 59 | varchar | |
DateOfDischarge | 60 | date | |
DateOfDeath | 61 | date | |
DischargeTo | 62 | varchar | |
PreopStay_days | 63 | int | |
PostOpStay_days | 64 | int | |
TotalHospitalStay | 65 | int | |
IhdScore_cardwl | 66 | int | |
NihdScore_cardwl | 67 | int | |
OtherComplicationsPreDischarge | 68 | varchar | |
DateOfDeathPostDischarge | 69 | date | |
PostProcedureDeathInterval_days | 70 | int | |
FormsVerified | 71 | varchar | |
Contract | 72 | varchar | |
Pcg | 73 | varchar | |
AuditLoopClosed | 74 | varchar | |
DateAuditLoopClosed | 75 | date | |
ReasonAuditLoopClosed | 76 | varchar | |
IntervalBetweenProc_LoopClosed_days | 77 | int | |
DateOnWaitingList | 78 | date | |
DaysOnList | 79 | int | |
GpPracticeCode | 80 | varchar | |
Pct | 81 | varchar | |
MedicalRecordNumber | 82 | varchar | |
AdministrativeCategory | 83 | varchar | |
AuditTrail | 84 | text | |
DateAndTimeOfProcedure | 85 | varchar | |
IsThisAcs | 86 | varchar | |
Sub_Xiphoid | 87 | varchar | |
PreDischargeComplications | 88 | varchar | |
IfOtherPreDischargeComplicationsPleaseState | 89 | varchar | |
Height | 90 | float | |
Weight | 91 | float | |
Bmi | 92 | float | |
ScreeningTime | 93 | float | |
ScreeningDose | 94 | float | |
ExceededDrl | 95 | varchar | |
Radiographer | 96 | varchar | |
ReasonForExceedingDrl | 97 | varchar | |
CatheterProcedureReport | 98 | varchar | |
ConsultantCode | 99 | varchar | |
OperatorCode | 100 | varchar | |
SecondOperatorCode | 101 | varchar | |
TroponinPositive | 102 | varchar | |
DateOfCurrentStatus | 103 | date | |
DateOfEndStatus | 104 | date | |
DateTimeRecordCreated | 105 | varchar | |
DateTimeRecordLastChanged | 106 | varchar | |
EnteredByTag | 107 | varchar | |
EntryCurrentStatus | 108 | varchar | |
EntryEndStatus | 109 | varchar | |
HospitalTag | 110 | varchar | |
ImportLinkId | 111 | int |
CS2003F_PostProcedure
Field Name | Column ID | Type | Comments |
EntryId | 1 | int | |
PatientId | 2 | int | |
Pre_OperativeStayInDays | 3 | int | |
Post_OperativeStayInDays | 4 | int | |
TotalStayInDays | 5 | int | |
ParsonnetScoreFromHardData | 6 | int | |
CardiopulmonaryBypass | 7 | varchar | |
ParsonnetScoreWithCatastrophicStatesAndRareConditi | 8 | int | |
PredominantMyocardialProtection | 9 | varchar | |
Parsonnet_AdditionsForCatastrophicStates | 10 | int | |
Parsonnet_AdditionsForRareConditions | 11 | int | |
Euroscore | 12 | int | |
Cs1999ComplexCabgBayesScore | 13 | float | |
LogisticEuroscore | 14 | float | |
Cardioplegia_Solution | 15 | varchar | |
Cardioplegia_Temperature | 16 | varchar | |
Cardioplegia_Timing | 17 | varchar | |
Non_CardioplegiaMyocardialProtection | 18 | varchar | |
Intra_AorticBalloonPumpUsed | 19 | varchar | |
ReaonForIabpUse | 20 | varchar | |
HeightInCm | 21 | int | |
WeightInKg | 22 | float | |
CumulativeBypassTimeInMin | 23 | int | |
CumulativeCrossClampTimeInMin | 24 | int | |
TotalCirculatoryArrestTimeInMin | 25 | int | |
Re_Operation | 26 | varchar | |
NewPost_OperativeStroke | 27 | varchar | |
NewHaemofiltration_DialysisPost_Operatively | 28 | varchar | |
DischargeDestination_FromCardiothoracicWard | 29 | varchar | |
DateOfDischargeOrDeath | 30 | datetime | |
BodySurfaceArea | 31 | float | |
BodyMassIndex | 32 | float | |
Cardioplegia_Infusion | 33 | varchar | |
EuroscoreMinumumDatasetCheck | 34 | varchar | |
ParsonnetMinumumDatasetCheck | 35 | varchar | |
NameOfGpAtTimeOfSurgery | 36 | varchar | |
GpPracticeCodeAtTimeOfSurgery | 37 | varchar | |
PctAtTimeOfSurgery | 38 | varchar | |
NameOfReferringGpAtTimeOfSurgeryType8 | 39 | varchar | |
ToePerformed | 40 | varchar | |
Sonographer | 41 | varchar | |
Sonographist | 42 | varchar | |
PrimaryPerfusionist | 43 | varchar | |
PcuPatient_pcu | 44 | varchar | |
DoesPatientMeetInterOperativeCriteria_pcu | 45 | varchar | |
AreaPatientAdmittedTo_pcu | 46 | varchar | |
AdmissionTimeToRecovery_cicu_pcu | 47 | varchar | |
ExtubationDateAndTime_pcu | 48 | varchar | |
WhatO2SystemWasUsed_pcu | 49 | varchar | |
TotalBloodLostOnDischargeFromRecovery_pcu | 50 | varchar | |
WereClottingProductsUsed_pcu | 51 | varchar | |
WhatProductsWereUsed_pcu | 52 | varchar | |
HowMuchColloidUsedInRecovery_pcu | 53 | varchar | |
TypeOfColloidUsed_pcu | 54 | varchar | |
PainScoreOnWaking_pcu | 55 | varchar | |
AnalgesiaUsedPcu | 56 | varchar | |
TotalMorphineDoseUsedIncludingBolus_pcu | 57 | varchar | |
InotropesUsed_pcu | 58 | varchar | |
Dosage_pcu | 59 | varchar | |
WereThereAnyArrhythmias_pcu | 60 | varchar | |
PleaseStateArrhythmias_pcu | 61 | varchar | |
TreatmentOfArrhythmias_pcu | 62 | varchar | |
PotassiumUsed_pcu | 63 | varchar | |
PotassiumDoseInMmols_pcu | 64 | varchar | |
TemperatureOnAdmission_pcu | 65 | float | |
BairhuggerWithPatient_pcu | 66 | varchar | |
TimeOfDischarge_pcu | 67 | varchar | |
PlaceOfDischarge_pcu | 68 | varchar | |
DoesPatientMeetDischargeCriteria_pcu | 69 | varchar | |
WasPatientDischargedFromPcuToHdu_pcu | 70 | varchar | |
LowUrineOutput_pcu | 71 | varchar | |
IfNoStateWhy_pcu | 72 | varchar | |
IfNoWhy_pcu | 73 | varchar | |
AmountOfTimeIntubated_pcu | 74 | float | |
AmountOfTimeInRecovery_cicu_pcu | 75 | float | |
OverallComments_sa | 76 | varchar | |
TeachingOfOtherStaffComments_sa | 77 | varchar | |
TeachingOfOtherStaffCommentsMade_sa | 78 | varchar | |
TeachingOfOtherStaffBySa_sa | 79 | varchar | |
IabpRemovalComments_sa | 80 | varchar | |
IabpRemovalCommentsMade_sa | 81 | varchar | |
IabpRemovalBySa_sa | 82 | varchar | |
IabpInsertionComments_sa | 83 | varchar | |
IabpInsertionCommentsMade_sa | 84 | varchar | |
IabpInsertionBySa_sa | 85 | varchar | |
SternotomyClosureComments_sa | 86 | varchar | |
SternotomyClosureCommentsMade_sa | 87 | varchar | |
SternotomyClosureBySa_sa | 88 | varchar | |
SternotomyComments_sa | 89 | varchar | |
SternotomyCommentsMade_sa | 90 | varchar | |
SternotomyPerformedBySa_sa | 91 | varchar | |
ThirdSiteComments_sa | 92 | varchar | |
ThirdSiteCommentsMade_sa | 93 | varchar | |
ThirdSiteConduit_location_sa | 94 | varchar | |
SecondSiteComments_sa | 95 | varchar | |
SecondSiteCommentsMade_sa | 96 | varchar | |
SecondSiteConduit_location_sa | 97 | varchar | |
FirstSiteComments_sa | 98 | varchar | |
FirstSiteCommentsMade_sa | 99 | varchar | |
FirstSiteConduei_location_sa | 100 | varchar | |
ThirdAssistant_sa | 101 | varchar | |
SecondAssistant_sa | 102 | varchar | |
FirstAssistant_sa | 103 | varchar | |
SurgicalAssistant_sa | 104 | varchar | |
ReferralToOperation_days | 105 | float | |
Arrhythmia_S | 106 | varchar | |
LowCardiacOutput | 107 | varchar | |
Ventilation | 108 | varchar | |
PulmonaryComplications | 109 | varchar | |
RenalComplications | 110 | varchar | |
GastrointestinalComplications | 111 | varchar | |
InfectiveComplications | 112 | varchar | |
CauseOfDeath | 113 | varchar | |
AdmittedFrom_hospitalNameOrWard | 114 | varchar | |
AdmittedToCardiacSurgery | 115 | datetime | |
DischargedFromCardiacSurgery | 116 | datetime | |
TotalCardiacSurgeryLosDays | 117 | float | |
DateOfFollowUp | 118 | datetime | |
BloodUsed | 119 | varchar | |
MutisystemFailure | 120 | varchar | |
DateFirstAdmittedToCicu | 121 | datetime | |
DateFirstDischargedFromCicu | 122 | datetime | |
TotalFirstStayOnCicu | 123 | float | |
ReAdmittedToCicu | 124 | varchar | |
DateOfSecondAdmissionToCicu | 125 | datetime | |
DateOfSecondDischargeFromCicu | 126 | datetime | |
SecondAdmissionTotalStay_nignts | 127 | float | |
DateOfThirdAdmissionToCicu | 128 | datetime | |
DateOfThirdDischargeFromCicu | 129 | datetime | |
ThirdAdmissionToCicuTotalStay_nights | 130 | float | |
InsertionOfPacemakerWiresViaVatsProcedure | 131 | varchar | |
IntubationTimeInHours | 132 | int | |
AuditTrail | 133 | varchar | |
NameOfDoctorCompletingBooklet | 134 | varchar | |
SecondPrimaryPerfusionist | 135 | varchar | |
SecondBypass | 136 | varchar | |
SecondMyocardialProtection | 137 | varchar | |
SecondCardioplegiaSolution | 138 | varchar | |
SecondCardioplegiaInfusion | 139 | varchar | |
SecondCardioplegiaTemperature | 140 | varchar | |
SecondCardioplegiaTiming | 141 | varchar | |
SecondNon_CardioplegiaMyocardialProtection | 142 | varchar | |
DoesPatientNeedAFollowUpAppiontment | 143 | varchar | |
Comments | 144 | varchar | |
MedicalRecordNumber | 145 | varchar | |
DateAddedToW_l | 146 | datetime | |
AddedToW_l | 147 | varchar | |
DateOfFourthAdmissionToCicu | 148 | datetime | |
DateOfFourthDischargeFromCicu | 149 | datetime | |
DateOfFifthAdmissionToCicu | 150 | datetime | |
DateOfFifthDischargeFromCicu | 151 | datetime | |
CumulativeStayFirstAndSecondAdmissionToCicu | 152 | float | |
Cumulative1st2ndAnd3rdStayInCicu | 153 | float | |
FourthAdmissionToCicuTotalStay_nights | 154 | float | |
Cumulative1st2nd3rd4thStayInCicu | 155 | float | |
FifthAdmissionToCicuTotalStay_nights | 156 | float | |
Cumulative1sr2nd3rd4th5thStayInCicu | 157 | float | |
PatientIdentifiedForSamedayAdmission | 158 | varchar | |
ProposedDateOfAdmission | 159 | datetime | |
IfNotOperatedOnSamedayGiveReason | 160 | varchar | |
SecondBypassTotal | 161 | int | |
SecondCrossClampTotal | 162 | int | |
SecondCiculatoryArrestTotal | 163 | int | |
CouncilCase | 164 | varchar | |
InitialConsultantInJointCase | 165 | varchar | |
ArrhythmiaOtherComplicationFreeText | 166 | varchar | |
LowCardiacOutputOtherComplicationFreeText | 167 | varchar | |
PulmonaryOtherComplicationFreeText | 168 | varchar | |
RenalOtherComplicationFreeText | 169 | varchar | |
GastrointestinalOtherComplicationFreeText | 170 | varchar | |
InfectiveOtherComplicationFreeText | 171 | varchar | |
SickNoteOffered | 172 | varchar | |
IfSickNoteOfferedDurationInDays | 173 | int | |
AdviceToGpAndAnyMedicationChangedOrStopped | 174 | varchar | |
NameOfDischargingDoctor | 175 | varchar | |
GradeOfDischargingDoctor | 176 | varchar | |
PagerNumber | 177 | varchar | |
DrugSensitivity | 178 | varchar | |
Drug1 | 179 | varchar | |
DrugRoute1 | 180 | varchar | |
NumberOfDays1 | 181 | int | |
Continue1 | 182 | varchar | |
Drug2 | 183 | varchar | |
DrugRoute2 | 184 | varchar | |
NumberOfDays2 | 185 | int | |
Continue2 | 186 | varchar | |
Drug3 | 187 | varchar | |
DrugRoute3 | 188 | varchar | |
NumberOfDays3 | 189 | int | |
Continue3 | 190 | varchar | |
Drug4 | 191 | varchar | |
DrugRoute4 | 192 | varchar | |
NumberOfDays4 | 193 | int | |
Continue4 | 194 | varchar | |
Drug5 | 195 | varchar | |
DrugRoute5 | 196 | varchar | |
NumberOfDays5 | 197 | int | |
Continue5 | 198 | varchar | |
Drug6 | 199 | varchar | |
DrugRoute6 | 200 | varchar | |
NumberOfDays6 | 201 | int | |
Continue6 | 202 | varchar | |
Drug7 | 203 | varchar | |
DrugRoute7 | 204 | varchar | |
NumberOfDays7 | 205 | int | |
Continue7 | 206 | varchar | |
Drug8 | 207 | varchar | |
DrugRoute8 | 208 | varchar | |
NumberOfDays8 | 209 | int | |
Continue8 | 210 | varchar | |
Drug9 | 211 | varchar | |
DrugRoute9 | 212 | varchar | |
NumberOfDays9 | 213 | int | |
Continue9 | 214 | varchar | |
Drug10 | 215 | varchar | |
DrugRoute10 | 216 | varchar | |
NumberOfDays10 | 217 | int | |
Continue10 | 218 | varchar | |
Drug11 | 219 | varchar | |
DrugRoute11 | 220 | varchar | |
NumberOfDays11 | 221 | int | |
Continue11 | 222 | varchar | |
Drug12 | 223 | varchar | |
DrugRoute12 | 224 | varchar | |
NumberOfDays12 | 225 | int | |
Continue12 | 226 | varchar | |
Drug13 | 227 | varchar | |
DrugRoute13 | 228 | varchar | |
NumberOfDays13 | 229 | int | |
Continue13 | 230 | varchar | |
Drug14 | 231 | varchar | |
DrugRoute14 | 232 | varchar | |
NumberOfDays14 | 233 | int | |
Continue14 | 234 | varchar | |
Drug15 | 235 | varchar | |
DrugRoute15 | 236 | varchar | |
NumberOfDays15 | 237 | int | |
Continue15 | 238 | varchar | |
Drug16 | 239 | varchar | |
DrugRoute16 | 240 | varchar | |
NumberOfDays16 | 241 | int | |
Continue16 | 242 | varchar | |
Drug17 | 243 | varchar | |
DrugRoute17 | 244 | varchar | |
NumberOfDays17 | 245 | int | |
Continue17 | 246 | varchar | |
Drug18 | 247 | varchar | |
DrugRoute18 | 248 | varchar | |
NumberOfDays18 | 249 | int | |
Continue18 | 250 | varchar | |
DrugNameAndStrength19 | 251 | varchar | |
DrugForm19 | 252 | varchar | |
DrugDose19 | 253 | varchar | |
DrugRoute19 | 254 | varchar | |
DrugFrequency19 | 255 | varchar | |
NumberOfDays19 | 256 | int | |
Continue19 | 257 | varchar | |
DrugNameAndStrength20 | 258 | varchar | |
DrugForm20 | 259 | varchar | |
DrugDose20 | 260 | varchar | |
DrugRoute20 | 261 | varchar | |
DrugFrequency20 | 262 | varchar | |
NumberOfDays20 | 263 | int | |
Continue20 | 264 | varchar | |
DrugNameAndStrength21 | 265 | varchar | |
DrugForm21 | 266 | varchar | |
DrugDose21 | 267 | varchar | |
DrugRoute21 | 268 | varchar | |
DrugFrequency21 | 269 | varchar | |
NumberOfDays21 | 270 | int | |
Continue21 | 271 | varchar | |
DrugNameAndStrength22 | 272 | varchar | |
DrugForm22 | 273 | varchar | |
DrugDose22 | 274 | varchar | |
DrugRoute22 | 275 | varchar | |
DrugFrequency22 | 276 | varchar | |
NumberOfDays22 | 277 | int | |
Continue22 | 278 | varchar | |
DrugNameAndStrength23 | 279 | varchar | |
DrugForm23 | 280 | varchar | |
DrugDose23 | 281 | varchar | |
DrugRoute23 | 282 | varchar | |
DrugFrequency23 | 283 | varchar | |
NumberOfDays23 | 284 | int | |
Continue23 | 285 | varchar | |
DrugNameAndStrength24 | 286 | varchar | |
DrugForm24 | 287 | varchar | |
DrugDose24 | 288 | varchar | |
DrugRoute24 | 289 | varchar | |
DrugFrequency24 | 290 | varchar | |
NumberOfDays24 | 291 | int | |
Continue24 | 292 | varchar | |
DischargeWard | 293 | varchar | |
Pharmacist | 294 | varchar | |
ManagementPlan | 295 | varchar | |
FollowUpRequired | 296 | varchar | |
FollowUpTimeInWeeks_months | 297 | varchar | |
MedicationChangedByPharmacist | 298 | varchar | |
StatePharmacistChanges | 299 | varchar | |
InformationGivenToPatient | 300 | varchar | |
DateTimeRecordCreated | 301 | datetime | |
DateTimeRecordLastChanged | 302 | datetime | |
EnteredByTag | 303 | varchar | |
HospitalTag | 304 | varchar | |
WHO_REGISTRY_INDICATOR | 305 | varchar | |
WHO_POSSIBLE_DUPLICATE | 306 | char |