ccda_to_omop.ddl module

OMOP table definitions and domain routing maps.

Provides three key dictionaries used to route parsed records to the correct output table:

  • config_to_domain_name_dict: maps metadata config names (e.g. "Condition") to OMOP domain names (e.g. "Condition")

  • domain_name_to_table_name: maps OMOP domain names to CDM table names (e.g. "Condition""condition_occurrence")

  • Column lists for each OMOP table, used to align DataFrame output to the CDM schema

ccda_to_omop.ddl.generate_cfg_name_to_domain_map() Dict[str, str][source]

Dict[table_name] –> domain name

Scans all .py files in the metadata directory, inspects their ‘metadata’ variable, and builds a dictionary mapping config names to their ‘expected_domain_id’.