Skip to main content
Version: 2.0.0

Clinical Lab Tests

Overview of Data Domain

Clinical lab tests are a fundamental component of medical diagnostics and patient care. They encompass a wide range of tests performed on samples of blood, urine, tissue, or other bodily substances to assess health and diagnose disease. The data domain for clinical lab tests includes several key elements:

  1. Test Name and Description: Each lab test has a specific name and purpose, which provides vital information about what aspect of health or disease is being evaluated.

  2. Interpretation: The analysis and understanding of test results in the context of a patient’s overall health and medical history. Abnormal results may indicate an underlying condition that requires further investigation or treatment.

  3. Measurement Units: Lab tests results are reported in specific units of measure, such as milligrams per deciliter (mg/dL) for blood sugar levels or cells per microliter for blood cell counts.

  4. Reference Ranges: These are established norms used to compare individual test results. They indicate what is considered normal for a specific population or individual, based on age, sex, and other factors.The reference ranges for all clinical lab tests performed by the UW NORC lab (and CBC test performed at local labs for each Data site).

  5. Method of Collection This refers to how the sample is obtained, whether it's a blood draw, urine collection, or tissue biopsy.

Variables included in Data Domain

See the table here

NT-proBNP Reference Intervals

SexAge_LowAge_HighRange_LowRange_High
F0d2d32111987
F3d10d2635918
F11d1m2635918
F2m1y37646
F2y2y39413
F3y6y23289
F7y14y0157
F15y18y0158
F19y38y0160
F40y44y0162
F45y54y0141
F55y64y0226
F65y200y0540
M0d2d32111987
M3d10d2635918
M11d1m2635918
M2m1y37646
M2y2y39413
M3y6y23289
M7y14y0157
M15y18y0158
M19y38y079
M40y44y072
M45y54y087
M55y64y088
M65y200y0540

Alkaline Phosphatase reference ranges

SexAge_LowAge_HighRange_LowRange_High
F0y9y111281
F10y11y132366
F12y13y89285
F14y17y43226
F18y24y2698
F25y34y25100
F35y44y25112
F45y54y34121
F55y64y31132
F65y74y38172
F75y200y49199
M0y9y115324
M10y11y115324
M12y13y119426
M14y17y72400
M18y24y42136
M25y34y35109
M35y44y36122
M45y54y39139
M55y64y37159
M65y74y36161
M75y200y52227

Data Processing

File Format

Data was exported from the RedCap Survey that was filled by clinical personnel into .csv format.

File organization is as follows:

pilot_data_root
└── clinical_data
└── measurement.csv
DomainVariableData CaptureMethodData Standard/File ExtensionOpen Source vs. Protected Database?
Labsmeasurement.csvdevice, then AzureRedCap.csvOpen source

Data Standards

OMOP

The OMOP (Observational Medical Outcomes Partnership) data standard, developed by the Observational Health Data Sciences and Informatics (OHDSI) program, is a standardized framework designed to improve the quality, reliability, and comparability of observational healthcare data. The main goal of the OMOP standard is to enable the aggregation and analysis of healthcare data from diverse sources, such as electronic health records (EHRs), insurance claims, and registries, in a consistent and interoperable manner.

Reference : https://ohdsi.github.io/CommonDataModel/

File Processing

The .csv file can be opened and processed using notebook application or any coding language example:( Python, R). Here is a snippet code to extract HbA1c.


import pandas as pd

# Load the CSV file
git reset head# Replace 'your_file.csv' with the path to your CSV file

# Replace 'HBA1C_IDENTIFIER' with the actual identifier for HbA1c in your dataset
HBA1C_IDENTIFIER = 'HbA1c (%)' # This should be the actual identifier used in your CSV

# Filter the dataframe for rows where measurement_source_concept_id is HbA1c
hba1c_df = df[df['measurement_source_value'] == HBA1C_IDENTIFIER]

# Selecting only the necessary columns
hba1c_df = hba1c_df[['person_id', 'value_as_number', 'measurement_source_value']]

# Save the filtered data to a new CSV file
hba1c_df.to_csv('hba1c.csv', index=False)

print(‘ Data saved to hba1c.csv')

Metadata and Example Outputs

VariableDescriptionExample 1Example 2
measurement_idUnique identifier for the measurement1076910770
person_idUnique identifier for the person10991500
measurement_concept_idConcept ID for the type of measurement30359953004410
measurement_dateDate of the measurement2023-11-302023-07-27
measurement_datetimeDate and time of the measurement2023-11-30 00:00:002023-07-27 00:00:00
measurement_timeTime of the measurement00:00:0000:00:00
measurement_type_concept_idConcept ID for the type of measurement3285632856
operator_concept_idConcept ID for the operator of measurement41727034172703
value_as_numberNumeric value of the measurement65.05.7
value_as_concept_idConcept ID for the value of measurement00
unit_concept_idConcept ID for the unit of measurement00
range_lowLower range of the measurement value34.04.0
range_highHigher range of the measurement value139.06.0
provider_idUnique identifier for the provider00
visit_occurrence_idUnique identifier for the visit occurrence00
visit_detail_idUnique identifier for the visit detail00
measurement_source_valueSource value of the measurementAlkaline Phosphatase (IU/L)HbA1c (%)
measurement_source_concept_idConcept ID for the measurement source value00
unit_source_valueSource unit of the measurementIU/L%
unit_source_concept_idConcept ID for the unit source00
value_source_valueSource value for the measurement value655.7
measurement_event_idUnique identifier for the measurement event00
meas_event_field_concept_idConcept ID for the measurement event field00