An S4 class to represent inpatient encounters

Encounter(conn, id, extend_table_start = NULL)

Arguments

conn

a database connection

id

an encounter identifier

extend_table_start

optional integer to specify an earlier start (in hours) in the longitudinal table of the object. For example, a value of 6 means the longitudinal table will begin 6 hours prior to the admission date. The value must be a positive number. Decimal numbers will be rounded up to the nearest integer. The default is NULL.

Slots

id

an encounter identifier

conn

a database connection

record

a tbl_sql for the corresponding database record

longitudinal_table

a tbl_sql for the longitudinal encounter table