
Write computed features as measurement rows so OHDSI tools read them
Source: R/study_features.R
write_feature_set.RdOne 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 arevisit_occurrencerows).- register_concepts
Add the concepts to
conceptso covariate names resolve.- type_concept_id
Measurement type concept; default 45754907 ("Derived value").