add_observations: Add observations to the CRC cell

Description Usage Arguments Details

Description

Add observations to the CRC cell

Usage

1
add_observations(observations, project, host = "", admin = "", pass = "")

Arguments

observations

A dataframe of observation facts

project

The name of the project

host

The host to connect to

admin

The admin account for the PostgreSQL database

pass

The password for the admin account

Details

The observations 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 - concept_cd: the concept to insert - provider_id: the provider - modifier_cd: optionnal modifier for the concept Other observation fact columns can optionnaly be included, such as end_date, valtype_cd, tval_char, nval_num, valueflag_cd, units_cd, etc.


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