Skip to main content
Version: 1.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

AgeFemale RangeMale Range
0-2d321-11987321-11987
3d-10d263-5918263-5918
11d-1m263-5918263-5918
2m-1y37-64637-646
2y39-41339-413
3y-6y23-28923-289
7y-14y0-1570-157
15y-18y0-1580-158
19y-39y0-1600-79
40y-44y0-1620-72
45y-54y0-1410-87
55y-64y0-2260-88
65y-0-5400-540

Alkaline Phosphatase reference ranges

AgeFemale RangeMale Range
0-9y111-281115-324
10y-11y132-366115-324
12y-13y89-285119-426
14y-17y43-22672-400
18y-24y26-9842-136
25y-34y25-10035-109
35y-44y25-11236-122
45y-54y34-12139-139
55y-64y31-13237-159
65y-74y38-17236-161
75y-49-19952-227

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

Was this page helpful?