wiki:i2b2 Data Import PATS Mapping v1

Version 10 (modified by Richard Bramley, 11 years ago) ( diff )

--

Back

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 FieldSource
Encounter_Numi2b2 Patient ID
Patient_Numi2b2 PatientID
Concept_CdEnum lookup value (see below)
Provider_Id"@"
Start_DateThe source table observation date field (see below)
Modifier_Cd"@"
ValType_Cd"T" (text)
Units_Cd"@"
Location_Cd"@"
Update_DateThe 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 FieldSource
Encounter_Numi2b2 Patient ID
Patient_Numi2b2 PatientID
Concept_Cd"PTS:{TABLE_NAME}_{COLUMN_ID}"
Provider_Id"@"
Start_DateThe source table observation date field (see above)
Modifier_Cd"@"
ValType_Cd"N" (numeric)
TVal_Char"E" (see below)
Units_CdValue calculated by ufn_get_units function (see below)
Location_Cd"@"
Update_DateThe 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:

ValueMeaning
EEquals
NENot Equal
LLess Than
LELess Than or Equals
GGreater Than
GEGreater 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 NameColumn IDTypeComments
EntryId1int
PatientId2int
DateofCatheter3date
TimeofCatheter4time
EntryStatus5varchar
PreviousEntry6int
NextEntry7int
DateOfAdmission8date
AgeAtCatheter9int
DoneInMobileLab10varchar
Consultant11varchar
Operator12varchar
SecondOperator13varchar
Technician14varchar
PatientType15varchar
WasThePatientCatheterised16varchar
ProcedureType17varchar
GeneralAnaesthetics18varchar
ProcedureSite19varchar
BiopsyTaken20varchar
BiopsySite21varchar
OtherProcedure22varchar
Arterial_123varchar
Vessel_1_Arterial24varchar
Complicated_1_Arterial25varchar
Arterial_226varchar
Vessel_2_Arterial27varchar
Complicated2Arterial28varchar
Arterial_329varchar
Vessel_3_Arterial30varchar
Complicated_3_Arterial31varchar
Venous_132varchar
Vessel_1_Venous33varchar
Complicated_1_Venous34varchar
Venous_235varchar
Vessel_2_Venous36varchar
Complicated_2_Venous37varchar
Venous_338varchar
Vessel_3_Venous39varchar
Complicated_3_Venous40varchar
Vessels41varchar
ReturnedTo42varchar
FurtherProcedure43varchar
ImmediateComplications44varchar
ProcedureAbandoned45varchar
ReasonForAbandoningProcedure46varchar
OtherComplications47varchar
DiedInCathLab48varchar
CoronaryDisease49varchar
SignificantValveDisease50varchar
SignificantLvDisease51varchar
Outcome52varchar
ReturnToCathLab53varchar
EmbolicSequelae54varchar
NonEmergencySurgery55varchar
GroinComplication56varchar
Death57varchar
DischargeComplications58varchar
OutcomeOfCatheter59varchar
DateOfDischarge60date
DateOfDeath61date
DischargeTo62varchar
PreopStay_days63int
PostOpStay_days64int
TotalHospitalStay65int
IhdScore_cardwl66int
NihdScore_cardwl67int
OtherComplicationsPreDischarge68varchar
DateOfDeathPostDischarge69date
PostProcedureDeathInterval_days70int
FormsVerified71varchar
Contract72varchar
Pcg73varchar
AuditLoopClosed74varchar
DateAuditLoopClosed75date
ReasonAuditLoopClosed76varchar
IntervalBetweenProc_LoopClosed_days77int
DateOnWaitingList78date
DaysOnList79int
GpPracticeCode80varchar
Pct81varchar
MedicalRecordNumber82varchar
AdministrativeCategory83varchar
AuditTrail84text
DateAndTimeOfProcedure85varchar
IsThisAcs86varchar
Sub_Xiphoid87varchar
PreDischargeComplications88varchar
IfOtherPreDischargeComplicationsPleaseState89varchar
Height90float
Weight91float
Bmi92float
ScreeningTime93float
ScreeningDose94float
ExceededDrl95varchar
Radiographer96varchar
ReasonForExceedingDrl97varchar
CatheterProcedureReport98varchar
ConsultantCode99varchar
OperatorCode100varchar
SecondOperatorCode101varchar
TroponinPositive102varchar
DateOfCurrentStatus103date
DateOfEndStatus104date
DateTimeRecordCreated105varchar
DateTimeRecordLastChanged106varchar
EnteredByTag107varchar
EntryCurrentStatus108varchar
EntryEndStatus109varchar
HospitalTag110varchar
ImportLinkId111int

CS2003F_PostProcedure

CS2003F_PreProcedure

CS2010F_PostProcedure

CS2010F_PreProcedure

EPS_EPSINIVW

GGHMINAP_GGHMINAP

GGHMINAPNEW

GGHMINAPNEW_GGHMINAPINIVW

GGHPACEICD_GGHPACEICDINIALVW

GGHPCI_FLWGGHPCIVIEW

GGHPCI_INITIALGGHPCIVIEW

LRIMINAPNEW

LRIMINAPNEW_LRIMINAPNEWINITIALVW

VERTED_VERTEDINIALVW

Note: See TracWiki for help on using the wiki.