check_pregnant: Check for pregnant patients

Description Usage Arguments Details Value

Description

check_pregnant takes data frames with diagnosis codes and labs and returns a data frame with identifiers of pregnant patients

Usage

1
check_pregnant(labs, icd9 = NULL, icd10 = NULL)

Arguments

labs

A data frame with pregnancy test lab values

icd9

An optional data frame with ICD-9 diagnosis codes; will not check for the presence of ICD-9 codes indicating pregnancy if NULL (default)

icd10

An optional data frame with ICD-10 diagnosis codes; will not check for the presence of ICD-10 codes indicating pregnancy if NULL (default)

Details

This function takes data frames with ICD9/10 diagnosis codes and a data frame with urine/serum pregnancy test results, and returns a data frame with a list of all patients who are pregnant. This can be used to exclude patients from research studies.

Value

A data frame


bgulbis/BGTools documentation built on May 12, 2019, 8:21 p.m.