wiki:i2b2 Data Import PATS Mapping v1

Version 11 (modified by Richard Bramley, 12 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

Field NameColumn IDTypeComments
EntryId1int
PatientId2int
Pre_OperativeStayInDays3int
Post_OperativeStayInDays4int
TotalStayInDays5int
ParsonnetScoreFromHardData6int
CardiopulmonaryBypass7varchar
ParsonnetScoreWithCatastrophicStatesAndRareConditi8int
PredominantMyocardialProtection9varchar
Parsonnet_AdditionsForCatastrophicStates10int
Parsonnet_AdditionsForRareConditions11int
Euroscore12int
Cs1999ComplexCabgBayesScore13float
LogisticEuroscore14float
Cardioplegia_Solution15varchar
Cardioplegia_Temperature16varchar
Cardioplegia_Timing17varchar
Non_CardioplegiaMyocardialProtection18varchar
Intra_AorticBalloonPumpUsed19varchar
ReaonForIabpUse20varchar
HeightInCm21int
WeightInKg22float
CumulativeBypassTimeInMin23int
CumulativeCrossClampTimeInMin24int
TotalCirculatoryArrestTimeInMin25int
Re_Operation26varchar
NewPost_OperativeStroke27varchar
NewHaemofiltration_DialysisPost_Operatively28varchar
DischargeDestination_FromCardiothoracicWard29varchar
DateOfDischargeOrDeath30datetime
BodySurfaceArea31float
BodyMassIndex32float
Cardioplegia_Infusion33varchar
EuroscoreMinumumDatasetCheck34varchar
ParsonnetMinumumDatasetCheck35varchar
NameOfGpAtTimeOfSurgery36varchar
GpPracticeCodeAtTimeOfSurgery37varchar
PctAtTimeOfSurgery38varchar
NameOfReferringGpAtTimeOfSurgeryType839varchar
ToePerformed40varchar
Sonographer41varchar
Sonographist42varchar
PrimaryPerfusionist43varchar
PcuPatient_pcu44varchar
DoesPatientMeetInterOperativeCriteria_pcu45varchar
AreaPatientAdmittedTo_pcu46varchar
AdmissionTimeToRecovery_cicu_pcu47varchar
ExtubationDateAndTime_pcu48varchar
WhatO2SystemWasUsed_pcu49varchar
TotalBloodLostOnDischargeFromRecovery_pcu50varchar
WereClottingProductsUsed_pcu51varchar
WhatProductsWereUsed_pcu52varchar
HowMuchColloidUsedInRecovery_pcu53varchar
TypeOfColloidUsed_pcu54varchar
PainScoreOnWaking_pcu55varchar
AnalgesiaUsedPcu56varchar
TotalMorphineDoseUsedIncludingBolus_pcu57varchar
InotropesUsed_pcu58varchar
Dosage_pcu59varchar
WereThereAnyArrhythmias_pcu60varchar
PleaseStateArrhythmias_pcu61varchar
TreatmentOfArrhythmias_pcu62varchar
PotassiumUsed_pcu63varchar
PotassiumDoseInMmols_pcu64varchar
TemperatureOnAdmission_pcu65float
BairhuggerWithPatient_pcu66varchar
TimeOfDischarge_pcu67varchar
PlaceOfDischarge_pcu68varchar
DoesPatientMeetDischargeCriteria_pcu69varchar
WasPatientDischargedFromPcuToHdu_pcu70varchar
LowUrineOutput_pcu71varchar
IfNoStateWhy_pcu72varchar
IfNoWhy_pcu73varchar
AmountOfTimeIntubated_pcu74float
AmountOfTimeInRecovery_cicu_pcu75float
OverallComments_sa76varchar
TeachingOfOtherStaffComments_sa77varchar
TeachingOfOtherStaffCommentsMade_sa78varchar
TeachingOfOtherStaffBySa_sa79varchar
IabpRemovalComments_sa80varchar
IabpRemovalCommentsMade_sa81varchar
IabpRemovalBySa_sa82varchar
IabpInsertionComments_sa83varchar
IabpInsertionCommentsMade_sa84varchar
IabpInsertionBySa_sa85varchar
SternotomyClosureComments_sa86varchar
SternotomyClosureCommentsMade_sa87varchar
SternotomyClosureBySa_sa88varchar
SternotomyComments_sa89varchar
SternotomyCommentsMade_sa90varchar
SternotomyPerformedBySa_sa91varchar
ThirdSiteComments_sa92varchar
ThirdSiteCommentsMade_sa93varchar
ThirdSiteConduit_location_sa94varchar
SecondSiteComments_sa95varchar
SecondSiteCommentsMade_sa96varchar
SecondSiteConduit_location_sa97varchar
FirstSiteComments_sa98varchar
FirstSiteCommentsMade_sa99varchar
FirstSiteConduei_location_sa100varchar
ThirdAssistant_sa101varchar
SecondAssistant_sa102varchar
FirstAssistant_sa103varchar
SurgicalAssistant_sa104varchar
ReferralToOperation_days105float
Arrhythmia_S106varchar
LowCardiacOutput107varchar
Ventilation108varchar
PulmonaryComplications109varchar
RenalComplications110varchar
GastrointestinalComplications111varchar
InfectiveComplications112varchar
CauseOfDeath113varchar
AdmittedFrom_hospitalNameOrWard114varchar
AdmittedToCardiacSurgery115datetime
DischargedFromCardiacSurgery116datetime
TotalCardiacSurgeryLosDays117float
DateOfFollowUp118datetime
BloodUsed119varchar
MutisystemFailure120varchar
DateFirstAdmittedToCicu121datetime
DateFirstDischargedFromCicu122datetime
TotalFirstStayOnCicu123float
ReAdmittedToCicu124varchar
DateOfSecondAdmissionToCicu125datetime
DateOfSecondDischargeFromCicu126datetime
SecondAdmissionTotalStay_nignts127float
DateOfThirdAdmissionToCicu128datetime
DateOfThirdDischargeFromCicu129datetime
ThirdAdmissionToCicuTotalStay_nights130float
InsertionOfPacemakerWiresViaVatsProcedure131varchar
IntubationTimeInHours132int
AuditTrail133varchar
NameOfDoctorCompletingBooklet134varchar
SecondPrimaryPerfusionist135varchar
SecondBypass136varchar
SecondMyocardialProtection137varchar
SecondCardioplegiaSolution138varchar
SecondCardioplegiaInfusion139varchar
SecondCardioplegiaTemperature140varchar
SecondCardioplegiaTiming141varchar
SecondNon_CardioplegiaMyocardialProtection142varchar
DoesPatientNeedAFollowUpAppiontment143varchar
Comments144varchar
MedicalRecordNumber145varchar
DateAddedToW_l146datetime
AddedToW_l147varchar
DateOfFourthAdmissionToCicu148datetime
DateOfFourthDischargeFromCicu149datetime
DateOfFifthAdmissionToCicu150datetime
DateOfFifthDischargeFromCicu151datetime
CumulativeStayFirstAndSecondAdmissionToCicu152float
Cumulative1st2ndAnd3rdStayInCicu153float
FourthAdmissionToCicuTotalStay_nights154float
Cumulative1st2nd3rd4thStayInCicu155float
FifthAdmissionToCicuTotalStay_nights156float
Cumulative1sr2nd3rd4th5thStayInCicu157float
PatientIdentifiedForSamedayAdmission158varchar
ProposedDateOfAdmission159datetime
IfNotOperatedOnSamedayGiveReason160varchar
SecondBypassTotal161int
SecondCrossClampTotal162int
SecondCiculatoryArrestTotal163int
CouncilCase164varchar
InitialConsultantInJointCase165varchar
ArrhythmiaOtherComplicationFreeText166varchar
LowCardiacOutputOtherComplicationFreeText167varchar
PulmonaryOtherComplicationFreeText168varchar
RenalOtherComplicationFreeText169varchar
GastrointestinalOtherComplicationFreeText170varchar
InfectiveOtherComplicationFreeText171varchar
SickNoteOffered172varchar
IfSickNoteOfferedDurationInDays173int
AdviceToGpAndAnyMedicationChangedOrStopped174varchar
NameOfDischargingDoctor175varchar
GradeOfDischargingDoctor176varchar
PagerNumber177varchar
DrugSensitivity178varchar
Drug1179varchar
DrugRoute1180varchar
NumberOfDays1181int
Continue1182varchar
Drug2183varchar
DrugRoute2184varchar
NumberOfDays2185int
Continue2186varchar
Drug3187varchar
DrugRoute3188varchar
NumberOfDays3189int
Continue3190varchar
Drug4191varchar
DrugRoute4192varchar
NumberOfDays4193int
Continue4194varchar
Drug5195varchar
DrugRoute5196varchar
NumberOfDays5197int
Continue5198varchar
Drug6199varchar
DrugRoute6200varchar
NumberOfDays6201int
Continue6202varchar
Drug7203varchar
DrugRoute7204varchar
NumberOfDays7205int
Continue7206varchar
Drug8207varchar
DrugRoute8208varchar
NumberOfDays8209int
Continue8210varchar
Drug9211varchar
DrugRoute9212varchar
NumberOfDays9213int
Continue9214varchar
Drug10215varchar
DrugRoute10216varchar
NumberOfDays10217int
Continue10218varchar
Drug11219varchar
DrugRoute11220varchar
NumberOfDays11221int
Continue11222varchar
Drug12223varchar
DrugRoute12224varchar
NumberOfDays12225int
Continue12226varchar
Drug13227varchar
DrugRoute13228varchar
NumberOfDays13229int
Continue13230varchar
Drug14231varchar
DrugRoute14232varchar
NumberOfDays14233int
Continue14234varchar
Drug15235varchar
DrugRoute15236varchar
NumberOfDays15237int
Continue15238varchar
Drug16239varchar
DrugRoute16240varchar
NumberOfDays16241int
Continue16242varchar
Drug17243varchar
DrugRoute17244varchar
NumberOfDays17245int
Continue17246varchar
Drug18247varchar
DrugRoute18248varchar
NumberOfDays18249int
Continue18250varchar
DrugNameAndStrength19251varchar
DrugForm19252varchar
DrugDose19253varchar
DrugRoute19254varchar
DrugFrequency19255varchar
NumberOfDays19256int
Continue19257varchar
DrugNameAndStrength20258varchar
DrugForm20259varchar
DrugDose20260varchar
DrugRoute20261varchar
DrugFrequency20262varchar
NumberOfDays20263int
Continue20264varchar
DrugNameAndStrength21265varchar
DrugForm21266varchar
DrugDose21267varchar
DrugRoute21268varchar
DrugFrequency21269varchar
NumberOfDays21270int
Continue21271varchar
DrugNameAndStrength22272varchar
DrugForm22273varchar
DrugDose22274varchar
DrugRoute22275varchar
DrugFrequency22276varchar
NumberOfDays22277int
Continue22278varchar
DrugNameAndStrength23279varchar
DrugForm23280varchar
DrugDose23281varchar
DrugRoute23282varchar
DrugFrequency23283varchar
NumberOfDays23284int
Continue23285varchar
DrugNameAndStrength24286varchar
DrugForm24287varchar
DrugDose24288varchar
DrugRoute24289varchar
DrugFrequency24290varchar
NumberOfDays24291int
Continue24292varchar
DischargeWard293varchar
Pharmacist294varchar
ManagementPlan295varchar
FollowUpRequired296varchar
FollowUpTimeInWeeks_months297varchar
MedicationChangedByPharmacist298varchar
StatePharmacistChanges299varchar
InformationGivenToPatient300varchar
DateTimeRecordCreated301datetime
DateTimeRecordLastChanged302datetime
EnteredByTag303varchar
HospitalTag304varchar
WHO_REGISTRY_INDICATOR305varchar
WHO_POSSIBLE_DUPLICATE306char

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.