Skip to contents

One row per stay and column, dated the admission date. Pinned ids (the geography ids of SDI and RUCA) are kept; other columns are registered with register_custom_concepts(). Missing values write no row.

Usage

write_feature_set(
  fs,
  con,
  features,
  registry = NULL,
  visit_ids = TRUE,
  register_concepts = TRUE,
  type_concept_id = 45754907
)

Arguments

fs

A feature_set.

con

A DBI connection to an OMOP DuckDB.

features

The result of compute_features().

registry

Optional shared registry pinning concept ids across sites (see register_custom_concepts()).

visit_ids

Link rows to visit_occurrence_id = stay_id (right when the stays are visit_occurrence rows).

register_concepts

Add the concepts to concept so covariate names resolve.

type_concept_id

Measurement type concept; default 45754907 ("Derived value").

Value

A named list column -> c(concept_id, label).