project2_team8
Tables (32)
Ingredientevents
- Field (hadm_id) — INTEGER
- Field2 (stay_id) — INTEGER
- Field3 (caregiver_id) — INTEGER
- Field4 (starttime) — TIMESTAMP(0)
- Field (endtime) — TIMESTAMP(0)
- Field (storetime) — TIMESTAMP(0)
- Field2 (itemid) — INTEGER
- Field (amount) — DOUBLE PRECISION
- Field (amountuom) — VARCHAR(20)
- Field (rate) — DOUBLE PRECISION
- Field (rateuom) — VARCHAR(20)
- Field (orderid) — INTEGER
- Field (linkorderid) — INTEGER
- Field2 (statusdescription) — VARCHAR(20)
- Field (originalamount) — DOUBLE PRECISION
- Field (originalrate) — DOUBLE PRECISION
- Key (subject_id) — INTEGER — NOT NULL
admissions (hosp/admissions)
- Key (hadm_id) — INTEGER NOT NULL — Primary key — NOT NULL
- Field2 (admittime) — TIMESTAMP NOT NULL
- Field3 (dischtime) — TIMESTAMP
- Field (deathtime) — TIMESTAMP
- Field5 (admission_type) — VARCHAR(40) NOT NULL
- Field6 (admit_provider_id) — VARCHAR(10)
- Field7 (admission_location) — VARCHAR(60)
- Field8 (discharge_location) — VARCHAR(60)
- Field (insurance) — VARCHAR(255)
- Field2 (language) — VARCHAR(25)
- Field3 (marital_status) — VARCHAR(30)
- Field4 (race) — VARCHAR(80)
- Field (edregtime) — TIMESTAMP
- Field2 (edouttime) — TIMESTAMP
- Field3 (hospital_expire_flag) — SMALLINT
- Key (subject_id) — INTEGER NOT NULL — Foreign key → patients.Key — NOT NULL
caregiver (icu/caregiver)
- Key (caregiver) — INTEGER NOT NULL — Primary key — NOT NULL
charevents
- Field2 (caregiver_id) — INTEGER
- Field (charttime) — TIMESTAMP(0)
- Field (storetime) — TIMESTAMP(0)
- Field (value) — VARCHAR(200)
- Field (valuenum) — DOUBLE PRECISION
- Field (valueuom) — VARCHAR(20)
- Field (warning) — SMALLINT
- Key (subject_id) — INTEGER NOT NULL — Foreign key → patients.Key — NOT NULL
- Key (hadm_id) — INTEGER NOT NULL — Foreign key → admissions.Key — NOT NULL
- Key (stay_id) — INTEGER NOT NULL — Foreign key → icustays.Key — NOT NULL
- Key (itemid) — INTEGER NOT NULL — Foreign key → d_items.Key — NOT NULL
d_hcps (hosp/d_hcps)
- Key (Code) — CHAR(5) NOT NULL — Primary key — NOT NULL
- Field (Category) — SMALLINT
- Field (long_description) — TEXT
- Field (short_description) — VARCHAR(180)
d_icd_diagnoses (hosp/d_icd_diagnoses)
- Key (icd_version) — SMALLINT — Primary key — NOT NULL
- Key (icd_code) — CHAR(7) — Primary key — NOT NULL
- Field — VARCHAR(255)
d_icd_procedures (hosp/d_icd_procedures)
- Key (icd_code) — VARCHAR(20) — Primary key — NOT NULL
- Key2 (icd_version) — INT — Primary key — NOT NULL
- Field (long_title) — TEXT
d_items (icu/d_items)
- Key (itemid) — INTEGER NOT NULL — Primary key — NOT NULL
- Field (label) — VARCHAR(100) NOT NULL
- Field (abbreviation) — VARCHAR(50) NOT NULL
- Field (linksto) — VARCHAR(30) NOT NULL
- Field (category) — VARCHAR(50) NOT NULL
- Field (unitname) — VARCHAR(50)
- Field (param_type) — VARCHAR(20) NOT NULL
- Field (lownormalvalue) — FLOAT
- Field (highnormalvalue) — FLOAT
d_labtimes (hosp/d_labtimes)
- Key (itemid) — INTEGER — Primary key — NOT NULL
- Field (label) — VARCHAR(50)
- Field (Fluid) — VARCHAR(50)
- Field (Category)
datetimeevents (icu/datetimeevents)
- Key (charttime) — DATETIME — Primary key
- Key (itemid) — INTEGER NOT NULL — Foreign key → d_items.Key — NOT NULL
- Key (stay_id) — INTEGER NOT NULL — Foreign key → icustays.Key — NOT NULL
- Field (caregiver_id) — INT
- Field (storetime) — DATETIME
- Field (value) — VARCHAR(30)/TEXT
- Field (valueuom) — VARCHAR(30)
- Field (warning) — INT
- Key (hadm_id) — INTEGER NOT NULL — Foreign key → admissions.Key — NOT NULL
- Key (subject_id) — INTEGER NOT NULL — Foreign key → patients.Key — NOT NULL
demo_subject_id
- Key (subject_id) — INT — Primary key — NOT NULL
diagnoese_icd (hops/diagnoese_icd)
- Key (seq_num) — INTEGER NOT NULL — Primary key — NOT NULL
- Key (icd_code) — CHAR(7) — Primary key
- Key (icd_version) — SMALLINT — Primary key
- Key (hadm_id) — INTEGER NOT NULL — Foreign key → admissions.Key — NOT NULL
- Key (subject_id) — INTEGER NOT NULL — Foreign key → patients.Key — NOT NULL
drgcodes (hosp/drgcodes)
- Field (drg_type) — VARCHAR(10)
- Field (drg_code) — INT
- Field (description) — VARCHAR(50)/TEXT
- Field (drg_severity) — FLOAT
- Field (drg_mortality) — FLOAT
- Key (hadm_id) — INTEGER NOT NULL — Foreign key → admissions.Key — NOT NULL
- Key (subject_id) — INTEGER NOT NULL — Foreign key → patients.Key — NOT NULL
emar (hosp/emar)
- Key (emar_id) — VARCHAR(25) NOT NULL — Primary key — NOT NULL
- Field2 (hadm_id) — INTEGER
- Field3 (emar_seq) — INTEGER NOT NULL
- Field4 (poe_id) — VARCHAR(25) NOT NULL
- Field5 (pharmacy_id) — INTEGER
- Field (enter_provider_id) — VARCHAR(10)
- Field (charttime) — TIMESTAMP NOT NULL
- Field (medication) — TEXT
- Field (event_txt) — VARCHAR(100)
- Field (scheduletime) — TIMESTAMP
- Field (storetime) — TIMESTAMP NOT NULL
- Key (subject_id) — INTEGER NOT NULL — Foreign key → patients.Key — NOT NULL
emar.detail (hops/emar.detail)
- Key (parent_field_ordinal) — VARCHAR(10) — Primary key — NOT NULL
- Key (emar_id) — VARCHAR(25) NOT NULL — Foreign key → emar.Key — NOT NULL
- Field (emar_seq) — INTEGER NOT NULL
- Field (administration_type) — VARCHAR(50)
- Field (pharmacy_id) — INTEGER
- Field (barcode_type) — VARCHAR(4)
- Field (reason_for_no_barcode) — TEXT
- Field (complete_dose_not_given) — VARCHAR(5)
- Field (dose_due) — VARCHAR(100)
- Field (dose_due_unit) — VARCHAR(50)
- Field (dose_given) — VARCHAR(255)
- Field (dose_given_unit) — VARCHAR(50)
- Field (will_remainder_of_dose_be_given) — VARCHAR(5)
- Field (product_amount_given) — VARCHAR(30)
- Field (product_unit) — VARCHAR(30)
- Field (product_code) — VARCHAR(30)
- Field (product_description) — VARCHAR(255)
- Field (product_description_other) — VARCHAR(255)
- Field (prior_infusion_rate) — VARCHAR(40)
- Field (infusion_rate) — VARCHAR(40)
- Field (infusion_rate_adjustment) — VARCHAR(50)
- Field (infusion_rate_adjustment_amount) — VARCHAR(30)
- Field (infusion_rate_unit) — VARCHAR(30)
- Field (route) — VARCHAR(10)
- Field (infusion_complete) — VARCHAR(1)
- Field (completion_interval) — VARCHAR(50)
- Field (new_iv_bag_hung) — VARCHAR(1)
- Field (continued_infusion_in_other_location) — VARCHAR(1)
- Field (restart_interval) — TEXT
- Field (side) — VARCHAR(10)
- Field (site) — VARCHAR(255)
- Field (non_formulary_visual_verification)
- Key (subject_id) — INTEGER NOT NULL — Foreign key → patients.Key — NOT NULL
hcpcsevents (hops/hcpcsevents)
- Key2 (hcpcs_cd) — CHAR(5) — Primary key — NOT NULL
- Key3 (seq_num) — INTEGER NOT NULL — Primary key — NOT NULL
- Key (Code) — CHAR(5) NOT NULL — Foreign key → d_hcps.Key — NOT NULL
- Key (hadm_id) — INTEGER NOT NULL — Foreign key → admissions.Key — NOT NULL
- Field (subject_id) — INTEGER NOT NULL — NOT NULL
- Field2 (chartdate) — DATE
- Field3 (short_description) — VARCHAR(180) — NOT NULL
icustays (icu/icustays)
- Key (stay_id) — INTEGER NOT NULL — Primary key — NOT NULL
- Field (first_careunit) — VARCHAR(255)
- Field (last_careunit) — VARCHAR(255)
- Field (intime) — TIMESTAMP
- Field (outtime) — TIMESTAMP
- Field2 (los) — FLOAT
- Key (subject_id) — INTEGER NOT NULL — Foreign key → patients.Key — NOT NULL
- Key (hadm_id) — INTEGER NOT NULL — Foreign key → admissions.Key — NOT NULL
inputevents (icd/inputevents)
- Key (orderid) — INTEGER NOT NULL — Primary key — NOT NULL
- Key (itemid) — INTEGER NOT NULL — Foreign key → d_items.Key — NOT NULL
- Field4 (caregiver_id) — INTEGER
- Field (starttime) — TIMESTAMP NOT NULL
- Field (endtime) — TIMESTAMP NOT NULL
- Field2 (storetime) — TIMESTAMP
- Field (amount) — FLOAT
- Field (amountuom) — VARCHAR(20)
- Field (rate) — FLOAT
- Field (rateuom) — VARCHAR(20)
- Field (linkorderid) — INTEGER
- Field (ordercategoryname) — VARCHAR(50)
- Field (secondaryordercategoryname) — VARCHAR(50)
- Field (ordercomponenttypedescription) — VARCHAR(100)
- Field (ordercategorydescription) — VARCHAR(30)
- Field (patientweight) — FLOAT
- Field (totalamount) — FLOAT
- Field (totalamountuom) — VARCHAR(50)
- Field (isopenbag) — SMALLINT
- Field (continueinnextdept) — SMALLINT
- Field (statusdescription) — VARCHAR(20)
- Field (originalamount) — FLOAT
- Field (originalrate) — FLOAT
- Key (stay_id) — INTEGER NOT NULL — Foreign key → icustays.Key — NOT NULL
- Key (subject_id) — INTEGER NOT NULL — Foreign key → patients.Key — NOT NULL
- Key (hadm_id) — INTEGER NOT NULL — Foreign key → admissions.Key — NOT NULL
labevents (hosp/labevents)
- Key (labevent_id) — INT — Primary key — NOT NULL
- Field (hadm_id) — INT
- Field (specimen_id) — INT
- Field (order_provider_id) — FLOAT
- Field (charttime) — DATETIME
- Field (storetime) — DATETIME
- Field (value) — VARCHAR (10) / TEXT
- Field (valuenum) — FLOAT
- Field (valueuom) — VARCHAR(10)
- Field (ref_range_lower) — FLOAT
- Field (ref_range_upper) — FLOAT
- Field (flag) — VARCHAR(10)
- Field (priority) — VARCHAR(10)
- Field (comments) — TEXT
- Key (itemid) — INTEGER — Foreign key → d_labtimes.Key — NOT NULL
- Key (subject_id) — INTEGER NOT NULL — Foreign key → patients.Key — NOT NULL
microbiologyevents (hosp/microbiologyevents)
- Key (microevent_id) — INTEGER NOT NULL — Primary key — NOT NULL
- Field (micro_specimen_id) — INTEGER NOT NULL
- Field (order_provider_id) — VARCHAR(10)
- Field (chartdate) — TIMESTAMP(0) NOT NULL
- Field (charttime) — TIMESTAMP(0)
- Field (spec_itemid) — INTEGER NOT NULL
- Field (spec_type_desc) — VARCHAR(100) NOT NULL
- Field (test_seq) — INTEGER NOT NULL
- Field (storedate) — TIMESTAMP(0)
- Field (storetime) — TIMESTAMP(0)
- Field (test_itemid) — INTEGER
- Field (test_name) — VARCHAR(100)
- Field (org_itemid) — INTEGER
- Field (org_name) — VARCHAR(100)
- Field (isolate_num) — SMALLINT
- Field (quantity) — VARCHAR(50)
- Field (ab_itemid) — INTEGER
- Field (ab_name) — VARCHAR(30)
- Field (dilution_text) — VARCHAR(10)
- Field (dilution_comparison) — VARCHAR(20)
- Field (dilution_value) — DOUBLE PRECISION
- Field (interpretation) — VARCHAR(5)
- Field (comments) — TEXT
- Key (hadm_id) — INTEGER NOT NULL — Foreign key → admissions.Key — NOT NULL
- Key (subject_id) — INTEGER NOT NULL — Foreign key → patients.Key — NOT NULL
omr (hosps/omr)
- Key (subject_id) — INTEGER NOT NULL — Primary key — NOT NULL
- Field (seq_num) — INTEGER NOT NULL
- Field (result_value) — TEXT NOT NULL
- Key (chartdate) — DATE NOT NULL — NOT NULL
- Key (result_name) — VARCHAR(100) NOT NULL — NOT NULL
outputevents (icu/outputevents)
- Key (charttime) — DATETIME — Primary key
- Key (itemid) — INTEGER NOT NULL — Foreign key → d_items.Key — NOT NULL
- Key (stay_id) — INTEGER NOT NULL — Foreign key → icustays.Key — NOT NULL
- Field (caregiver_id) — INT
- Field (storetime) — DATETIME
- Field (value) — INT
- Field (valueuom) — VARCHAR(10)
- Key (subject_id) — INTEGER NOT NULL — Foreign key → patients.Key — NOT NULL
- Key (hadm_id) — INTEGER NOT NULL — Foreign key → admissions.Key — NOT NULL
patients (hops/patients)
- Key (subject_id) — INTEGER NOT NULL — Primary key — NOT NULL
- Field (gender) — CHAR(1) — NOT NULL
- Field2 (anchor_age) — SMALLINT
- Field3 (anchor_year) — SMALLINT — NOT NULL
- Field4 (anchor_year_group) — VARCHAR(20) — NOT NULL
- Field5 (dod) — DATE
pharmacy (hosp/pharmacy)
- Key (pharmacy_id) — INT — Primary key — NOT NULL
- Field (poe_id) — VARCHAR(20)
- Field (starttime) — DATETIME
- Field (stoptime) — DATETIME
- Field (medication) — VARCHAR / TEXT
- Field (proc_type) — VARCHAR(50)
- Field (status) — VARCHAR(50)
- Field (entertime) — DATETIME
- Field (verifiedtime) — DATETIME
- Field (route) — VARCHAR(10)
- Field (frequency) — VARCHAR(10)
- Field (disp_sched) — FLOAT
- Field (infusion_type) — FLOAT
- Field (sliding_scale) — FLOAT
- Field (lockout_interval) — FLOAT
- Field (basal_rate) — FLOAT
- Field (one_hr_max) — FLOAT
- Field (doses_per_24_hrs) — FLOAT
- Field (duration) — FLOAT
- Field (duration_interval) — FLOAT
- Field (expiration_value) — FLOAT
- Field (expiration_unit) — FLOAT
- Field (expirationdate) — FLOAT
- Field (dispensation) — FLOAT
- Field (fill_quantity) — FLOAT
- Key (subject_id) — INTEGER NOT NULL — Foreign key → patients.Key — NOT NULL
- Key (hadm_id) — INTEGER NOT NULL — Foreign key → admissions.Key — NOT NULL
poe (hosp/poe)
- Key (poe_id) — VARCHAR(25) NOT NULL — Primary key — NOT NULL
- Field (poe_seq) — INTEGER NOT NULL
- Field (ordertime) — TIMESTAMP(0) NOT NULL
- Field (order_type) — VARCHAR(25) NOT NULL
- Field (order_subtype) — VARCHAR(50)
- Field (transaction_type) — VARCHAR(15)
- Field (discontinue_of_poe_id) — VARCHAR(25)
- Field (discontinued_by_poe_id) — VARCHAR(25)
- Field (order_provider_id) — VARCHAR(10)
- Field (order_status) — VARCHAR(15)
- Key (hadm_id) — INTEGER NOT NULL — Foreign key → admissions.Key — NOT NULL
- Key (subject_id) — INTEGER NOT NULL — Foreign key → patients.Key — NOT NULL
poe.detail (hosp/poe.detail)
- Key (field_name) — VARCHAR(255) NOT NULL — Primary key — NOT NULL
- Key (poe_id) — VARCHAR(25) NOT NULL — Foreign key → poe.Key — NOT NULL
- Field (poe_seq) — INTEGER NOT NULL
- Field (field_value) — TEXT
- Key (subject_id) — INTEGER NOT NULL — Foreign key → patients.Key — NOT NULL
prescriptions (hops/prescriptions)
- Key (pharmacy_id) — INTEGER — Primary key — NOT NULL
- Key (drug) — VARCHAR(255) — Primary key — NOT NULL
- Key (drug_type) — VARCHAR(20) — Primary key — NOT NULL
- Field3 (poe_id) — VARCHAR(25)
- Field4 (poe_seq) — INTEGER
- Field5 (order_provider_id) — VARCHAR(10)
- Field6 (starttime) — TIMESTAMP(3)
- Field7 (stoptime) — TIMESTAMP(3)
- Field8 (formulary_drug_cd) — VARCHAR(50)
- Field9 (gsn) — VARCHAR(255)
- Field10 (ndc) — VARCHAR(25)
- Field11 (prod_strength) — VARCHAR(255)
- Field12 (form_rx) — VARCHAR(25)
- Field13 (dose_val_rx) — VARCHAR(100)
- Field14 (dose_unit_rx) — VARCHAR(50)
- Field15 (form_val_disp) — VARCHAR(50)
- Field16 (form_unit_disp) — VARCHAR(50)
- Field17 (doses_per_24_hrs) — REAL
- Field18 (route) — VARCHAR(50)
- Key (hadm_id) — INTEGER NOT NULL — Foreign key → admissions.Key — NOT NULL
- Key (subject_id) — INTEGER NOT NULL — Foreign key → patients.Key — NOT NULL
procedureevents (icu/procedureevents)
- Key (orderid) — INTEGER — Primary key — NOT NULL
- Field (caregiver_id) — INTEGER
- Field (starttime) — TIMESTAMP NOT NULL
- Field (endtime) — TIMESTAMP NOT NULL
- Field (storetime) — TIMESTAMP NOT NULL
- Field (value) — FLOAT
- Field (valueuom) — VARCHAR(20)
- Field (location) — VARCHAR(100)
- Field (locationcategory) — VARCHAR(50)
- Field (linkorderid) — INTEGER
- Field (ordercategoryname) — VARCHAR(50)
- Field (ordercategorydescription) — VARCHAR(30)
- Field (patientweight) — FLOAT
- Field (isopenbag) — SMALLINT
- Field (continueinnextdept) — SMALLINT
- Field (statusdescription) — VARCHAR(20)
- Field (originalamount) — FLOAT
- Field (originalrate) — FLOAT
- Key (stay_id) — INTEGER NOT NULL — Foreign key → icustays.Key — NOT NULL
- Key (itemid) — INTEGER NOT NULL — Foreign key → d_items.Key — NOT NULL
- Key (subject_id) — INTEGER NOT NULL — Foreign key → patients.Key — NOT NULL
- Key (hadm_id) — INTEGER NOT NULL — Foreign key → admissions.Key — NOT NULL
procedures_icd (hosp/procedures_icd)
- Field (seq_num) — INT — Primary key
- Field (icd_code) — VARCHAR(20) — Primary key
- Field (icd_version) — INT — Primary key
- Key (hadm_id) — INTEGER NOT NULL — Foreign key → admissions.Key — NOT NULL
- Field (chartdate) — DATETIME
- Key (subject_id) — INTEGER NOT NULL — Foreign key → patients.Key — NOT NULL
provider (hosp/provider)
- Key (provider) — VARCHAR(10) NOT NULL — Primary key — NOT NULL
services (service.csv)
- Key (transfertime) — TIMESTAMP(0) — Primary key — NOT NULL
- Key (curr_service) — VARCHAR(20) — Primary key — NOT NULL
- Key (hadm_id) — INTEGER NOT NULL — Foreign key → admissions.Key — NOT NULL
- Field (prev_service) — VARCHAR(20)
- Key (subject_id) — INTEGER NOT NULL — Foreign key → patients.Key — NOT NULL
transfers (hops/transfers)
- Key (transfer_id) — INTEGER NOT NULL — Primary key — NOT NULL
- Field2 (hadm_id) — INTEGER
- Field3 (eventtype) — VARCHAR(10)
- Field (careunit) — VARCHAR(255)
- Field (intime) — TIMESTAMP
- Field (outtime) — TIMESTAMP
- Key (subject_id) — INTEGER NOT NULL — Foreign key → patients.Key — NOT NULL