add_encounters: Add encounters to the CRC cell

Description Usage Arguments Details Value

Description

Add encounters to the CRC cell, generate new encrypted IDs

Usage

1
add_encounters(encounters, project, host = "", admin = "", pass = "")

Arguments

encounters

A dataframe of patients

project

The project to add the patients to

host

The host to connect to

admin

The admin account for the PostgreSQL database

pass

The password for the admin account

Details

The encounters dataframe must contain the following columns: - encounter_ide: the original encounter ID - patient_ide: the original patient ID - start_date: the start date of the encounter, as Date object - end_date: the end date of the encounter, as Date object - inout_cd: I or O if inpatient or outpatient

Value

An encounter mapping dataframe for the encounters


MaximeWack/R2b2 documentation built on May 8, 2019, 9:52 a.m.