Skip to contents

Import mappings exported from OHDSI Usagi into source_to_concept_map

Usage

import_usagi_mappings(
  con,
  usagi_csv_path,
  source_vocabulary_id = "Custom",
  approved_only = TRUE
)

Arguments

con

Active DuckDB connection

usagi_csv_path

Path to the exported Usagi CSV

source_vocabulary_id

Name of the source vocabulary to assign

approved_only

Only import records where mappingStatus is 'APPROVED'

Value

Number of imported rows for this vocabulary