check_pregnant: Identify pregnant patients

Description Usage Arguments Details Value

Description

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

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
check_pregnant(x, ...)

## Default S3 method:
check_pregnant(x, ...)

## S3 method for class 'diagnosis'
check_pregnant(x, ...)

## S3 method for class 'labs'
check_pregnant(x, ...)

Arguments

x

A data frame of either class diagnosis or labs

...

additional arguments passed on to individual methods

Details

This function takes a data frame of either class diagnosis or labs 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/edwr documentation built on May 12, 2019, 8:22 p.m.