
Package index
-
build_schema() - Build the OMOP CDM v5.4 schema into a DuckDB database file
-
load_vocabulary() - Load or refresh the OHDSI Athena vocabulary into the OMOP CDM database
-
attach_central_vocabulary() - Attach a Central Vocabulary Database via DuckDB Zero-Copy Views
-
concept_set_manifest()list_concept_sets()load_concept_set()load_concept_sets()concept_set_codes()concept_set_ids()concept_set_from_codes()concept_set_from_ids()resolve_concept_sets()loinc_coverage() - OHDSI concept sets behind the feature columns
-
read_csv_sql()read_parquet_sql()attach_database()sql_copy_to() - SQL table-function expressions and file operations with sanitized paths
-
omop_connect() - Connect to an OMOP DuckDB Database with the Central Vocabulary Attached Transparently
-
omop_connect_lakehouse() - Delta Lake and Apache Iceberg Lakehouse Connector for OMOP DuckDB
-
load_from_bigquery() - Copy OMOP-shaped table(s) from BigQuery into the local DuckDB CDM database
-
run_bigquery_demo() - Build the diabetes cohort on the public CMS SynPUF OMOP dataset in BigQuery
-
compile_cohort_bigquery() - Compile a Circe cohort definition to BigQuery (GoogleSQL) statements
-
summarize_bigquery_demo() - Summarise the BigQuery demonstration features
-
BIGQUERY_DEMO_DISCLAIMER - Disclaimer printed on every BigQuery demonstration report
-
BIGQUERY_DEMO_UTILIZATION_NOTE - Note printed beside the utilization features in the BigQuery demonstration report
-
backend_parity - BigQuery vs DuckDB, and R vs Python, parity checks
-
run_duckdb_demo() - Build the BigQuery demo's cohort and features on DuckDB
-
copy_demo_sample_from_bigquery() - Copy a person sample of the BigQuery CDM into DuckDB
-
compare_cohorts() - Compare two cohort tables
-
compare_features() - Compare two feature tables row by row
-
compare_column_types() - Compare column types between BigQuery and DuckDB
-
check_id_precision() - Id columns that cannot hold every 64-bit id exactly
-
compare_demo_summaries() - Compare two
demo_summary.jsonresults -
compare_demo_outputs() - Compare two demo output folders
-
DEMO_FEATURE_COLUMNS - Feature columns written by both backends (
subject_idis the key) -
check_vocabulary_version() - Query vocabulary version and summary metrics from DuckDB OMOP CDM
PCORnet ETL and synthesizers
Ingest PCORnet extracts and generate required OHDSI eras and observation periods.
-
etl_pcornet() - Run the PCORnet -> OMOP CDM v5.4 ETL (R implementation)
-
route_drug_domains() - Route non-Drug standard concepts out of drug_exposure into OMOP v5.4 domain tables
-
backfill_all()backfill_condition_concepts()backfill_drug_concepts()backfill_lab_values()backfill_vital_tobacco()backfill_med_admin()repair_routed_med_admin_values() - Post-Build Database Backfill Wrappers (Python Delegation via reticulate)
-
load_enrollment_spans() - Build enrolment spans from the PCORnet ENROLLMENT file
-
check_key_collisions()check_etl_keys() - Build-time surrogate-key collision check
-
build_observation_period() - Synthesize Observation Period envelopes
-
build_drug_era() - Synthesize Drug Eras
-
build_condition_era() - Synthesize Condition Eras
-
federated_consortium() - Multi-Site Federated Consortium Connector
-
consortium_query() - Execute a Query Across the Federated Consortium Views
-
consortium_site_summaries() - Audit Record Counts Across Participating Consortium Sites
-
consortium_calculate_scores() - Generate Consortium-Wide and Site-Stratified Bedside Risk Scores
-
consortium_generate_table1() - Generate Federated Table 1 Baseline Demographics and Clinical Profiles
-
consortium_generate_table2() - Generate Federated Table 2 Completeness and Missingness Audit
-
consortium_close() - Close Federated Consortium DuckDB Connection
-
create_federated_consortium() - Create a Zero-Copy Federated Consortium Connection
-
check_cross_database_discrepancy() - Check Cross-Database Concept Frequency Discrepancy
-
with_cell_suppression() - Create Privacy-Preserving View with Small-Cell Masking
-
with_differential_privacy() - Create Privacy-Preserving View with Differential Privacy Laplace Noise
-
audit_cell_suppression()consortium_privacy_audit() - Privacy-Preserving Cell Suppression Auditor
-
consortium_multivariable_risk_factors() - Robust Multivariable Odds Ratios with L2 / Ridge Inversion
-
consortium_cross_site_validation() - Internal-External Cross-Validation (IECV) Matrix
-
consortium_cohort_diagnostics() - Generate Pure DuckDB OHDSI Cohort Diagnostics
-
export_to_circe_json() - Export CohortFlow to OHDSI Circe JSON
-
build_manuscript_scaffold() - Build End-to-End Consortium Manuscript Scaffold
-
federated_meta_analysis() - Multi-Site Federated Meta-Analysis Aggregator
-
assign_site_labels() - Assign anonymous site labels
-
save_site_labels()load_site_labels() - Save or load a site-to-label mapping
-
validate_site_labels() - Check a site-to-label mapping before a run
-
relabel_sites() - Swap site labels in data or text
-
relabel_output_files() - Re-issue study outputs under a new site mapping (text files)
-
check_run_privacy() - Scan study outputs for real site names
-
load_care_site() - Ingest PCORnet facility.csv and/or Seed Primary Institutional Care Site
-
load_cdm_source() - Populate CDM_SOURCE metadata table
-
load_location() - Maps
lds_address_history.csvinto OMOP CDMlocationtable and updatesperson.location_id
-
import_source_to_concept_map() - Ingest custom mappings from a CSV into the OMOP source_to_concept_map table
-
import_usagi_mappings() - Import mappings exported from OHDSI Usagi into source_to_concept_map
-
export_unmapped_codes() - Export unmapped (concept_id = 0) codes aggregated by frequency ready for OHDSI Usagi
-
auto_remap_unmapped() - Heuristic Remapping and Diagnostic Repair for Unmapped Records
-
remap_cdm_table() - Remap unmapped (concept_id = 0) or deprecated concepts in an OMOP table
-
remap_discharge_status() - Recode transfer discharges in a database built before the ETL mapped 'IP' to 8717
-
cap_observation_period() - Cap observation periods of an already-built database at a data cutoff
-
check_observation_period_ends() - Flag observation periods that pile up on one end date
-
remap_all() - Remap all supported clinical tables and optionally rebuild eras
Cohorts and concept algebra
Parameterized cohort builders, set operations, and transitive hierarchy algebra.
-
define_study_cohort() - Define an Index-Stay Study Cohort
-
build_readmission_cohort() - Build 30-Day Readmission Cohort
-
build_end_of_life_cohort()build_mortality_cohort() - Build End of Life / Mortality Cohort
-
build_treatment_episodes() - Collapse Longitudinal Medication Exposures into Continuous Treatment Episodes
-
generate_consort_attrition() - Generate CONSORT Attrition Flowchart Object
-
summarize_attrition_consort() - CONSORT attrition table from counts, for one site or pooled across sites
-
write_consort_csv() - Write a CONSORT attrition table as a publication-ready CSV
-
export_consort_flowchart() - Export a publication-ready CONSORT flowchart image
-
to_mermaid() - Convert Object to Mermaid Diagram
-
to_typst() - Convert Object to Typst Flowchart
-
to_tikz() - Convert Object to LaTeX TikZ Flowchart
-
prepare_competing_risks_data() - Prepare Competing Risk Survival Data for Readmission vs. Mortality
-
create_cohort() - Materialize an OMOP Cohort
-
combine_cohorts() - Combine Cohorts via Set Operations
-
compute_attrition() - Track Patient Attrition Across Phenotyping Rules (CONSORT Flowchart)
-
get_cohort_summary() - Get Cohort Summary Statistics
-
ensure_cohort_tables() - Ensure Standard OMOP Cohort Tables Exist
-
build_ederri_diabetes_cohort() - Authoritative eDERRI Diabetes Inclusion Cohort (FR-A6)
-
compare_cohort_definitions() - Compare two target-cohort definitions side by side
-
run_cohort_sql() - Render, translate and run one portable cohort SQL file on DuckDB
-
resolve_concept_set() - Resolve Concept Set Algebra (ATLAS-Compatible)
-
get_concept_ancestors() - Resolve Concept Ancestors from Hierarchy Transitive Closure
-
get_concept_descendants() - Resolve Concept Descendants from Hierarchy Transitive Closure
Native CIRCE cohort compiler
In-process compilation and execution of OHDSI ATLAS / CIRCE JSON definitions in DuckDB.
-
circe - Native CIRCE / Atlas JSON-to-DuckDB Vectorized SQL Compiler
-
compile_circe_to_duckdb() - Compile CIRCE JSON to Vectorized DuckDB SQL
-
execute_circe_cohort() - Execute CIRCE JSON Cohort Directly in DuckDB
Comorbidity profiling and phenotyping
Validated 31 Elixhauser domains, Charlson comorbidity index, and composite risk scoring.
-
extract_elixhauser_comorbidities() - Elixhauser comorbidity profile (31 domains, van Walraven score)
-
extract_charlson_index() - Charlson comorbidity profile (17 categories, Charlson index)
-
calculate_bedside_scores() - Bedside Clinical Risk Score Calculators for OMOP CDM Cohorts
-
calculate_lace_index() - Calculate the LACE Index score for an acute hospital cohort
-
calculate_hospital_score() - Calculate the HOSPITAL Score for potentially avoidable 30-day readmissions
-
scores - Clinical Benchmark Risk Score Calculators (LACE Index and HOSPITAL Score)
-
list_available_phenotypes() - List available pre-compiled phenotype bundle names
-
get_phenotype_concept_set() - Retrieve pre-compiled concept set definition for an OHDSI phenotype
-
phenotypes - Pre-compiled OHDSI Phenotype Library Concept Bundles
Machine learning feature extraction
Extract patient-level sparse concept matrices, windowed temporal features, and measurements.
-
extract_sparse_concept_matrix() - Sparse concept matrix for ML / PLP-style models
-
extract_longitudinal_tensors()MAX_LONGITUDINAL_VISITSMAX_TOKENS_PER_VISITVOCAB_SIZE - Longitudinal sequence tensors for deep sequence models
-
extract_patient_features()extract_features() - Extract Machine Learning Feature Matrix from OMOP CDM
-
extract_temporal_features() - Extract Temporal Baseline and Prior Utilization Features
-
extract_clinical_sequence_tokens() - Extract Foundation Model Clinical Sequence Tokens
-
aggregate_concept_sets() - Aggregate Concept Sets via Athena Ancestor Traversal
-
extract_measurements() - Extract Consolidated Measurements and Vitals
-
extract_standard_labs() - Extract Harmonized Inpatient Lab Panels with Outlier Sanitization
-
extract_inpatient_labs() - Index-stay laboratory values per cohort row, separating acute labs from routine ones
-
extract_prior_utilization() - Prior healthcare utilization per cohort row, strictly before the index admission
-
consortium_calibration() - Cross-Site Model Calibration and Decision Curve Analysis (DCA)
-
decision_curve_analysis() - Clinical Decision Curve Analysis (DCA)
-
consortium_explainability() - Consortium Tree Model Explainability and TRIPOD Reporting
-
CORE_14_LAB_PANEL - Curated Core 14 Inpatient Lab Panel LOINCs
-
ACUTE_LAB_PANEL - Acute inpatient lab LOINCs (lactate, troponin I, arterial blood gases)
-
WORST_LAB_DIRECTION - Direction in which each lab is clinically "worse" (used by
strategy = "worst") -
DEFAULT_VISIT_CONCEPT_GROUPS - Default visit-concept groups for
extract_prior_utilization() -
extract_velocity_features() - Raw utilization inputs plus the engineered velocity set for a cohort
-
engineer_clinical_features() - Clinical velocity, LACE-proxy, hemodynamic and organ-dysfunction features
-
site_baseline_risk() - Per-site outcome rate as a feature, from training rows only
-
REQUIRED_VELOCITY_INPUTS - Input columns required by
engineer_clinical_features() -
NO_PRIOR_VISIT_DAYS - Days used when a patient has no prior visit of a type (the 365-day sentinel)
-
VELOCITY_FEATURES - Names of the features added by
engineer_clinical_features() -
VELOCITY_CONCEPTS - Default measurement concepts used by
extract_velocity_features()
Source databases, model bundles and site telemetry
Stream any DBI source to Parquet, import an existing OMOP CDM, validate feature contracts, score with hash-verified model bundles, and produce/pool aggregate-only consortium telemetry.
-
from_sql() - Stream source tables from any DBI database to Parquet
-
import_omop() - Copy an OMOP CDM from a server database into a local DuckDB file
-
CDM_STUDY_TABLES - Standard CDM tables copied by
import_omop() -
load_feature_spec() - Load a feature spec
-
validate_feature_frame() - Validate a feature table against a feature contract
-
feature_validation_telemetry() - Aggregate-only validation counts for a telemetry packet
-
load_model_bundle() - Load and verify a model bundle
-
write_model_bundle() - Package a model bundle
-
export_to_onnx() - Export a model bundle to one standalone ONNX file
-
score_cohort() - Score a feature table with a model bundle
-
bundle_predict_proba() - Probabilities of a bundle for an ordered numeric matrix
-
score_encounter() - Point-of-care scoring of one encounter
-
score_fhir_bundle() - Score a FHIR Bundle without a pre-built database
-
explain_rows() - Local risk-driver explanations for scored rows
-
check_unit_sanity() - Pre-scoring unit sanity check
-
harmonize_contract_units() - Rescale flagged features to the contract units
-
resolve_fhir_codes() - Resolve FHIR codes to standard OMOP concept ids
-
VOCABULARY_BY_SYSTEM - FHIR system URIs and the OMOP vocabulary each one selects
-
REFERENCE_MEDIANS - Typical adult inpatient reference medians (contract units)
-
LOINC_TO_FEATURE - LOINC code to model feature, used by
score_fhir_bundle() -
write_drift_report() - HTML drift and calibration report from the monitoring log
-
calibration_curve() - Calibration curve by equal-count bins
-
population_stability_index()calibration_summary()monitor_scores()update_monitoring_log() - Post-deployment drift and calibration monitoring
-
fit_capacity_thresholds()map_risk_tiers()tier_load() - Capacity-calibrated risk tiers
-
sha256_file() - SHA-256 of a file
-
DEFAULT_RISK_TIERS - Default risk tiers of a model bundle
-
site_telemetry() - Build an aggregate-only site telemetry packet
-
aggregate_telemetry() - Pool the telemetry packets of many sites
-
validate_packet() - Validate a telemetry packet against the JSON Schema
-
load_packet_schema() - Load the telemetry packet JSON Schema
-
auroc_delong() - AUROC with DeLong standard error
-
average_precision() - Average precision (area under the precision-recall step curve)
-
TELEMETRY_SCHEMA_VERSION - Schema version of the site telemetry packet
-
check_source() - Check a source directory against the ETL file/column contract
-
SOURCE_CONTRACT - Source-file contract of the PCORnet -> OMOP ETL
-
run_manifest() - Start a reproducibility manifest for a pipeline run
-
run_manifest_add_step()run_manifest_add_input() - Add an input file or an attrition step to a run manifest
-
write_run_manifest() - Write
run_manifest.json -
verify_manifest() - Verify the inputs recorded in a run manifest
-
split_by_date() - Held-out temporal split
-
DEFAULT_SPLIT_DATE_COLUMNS - Date columns that decide which side of a cutoff a CDM row falls on
-
EXTRA_EXPORT_TARGETS - Export targets generated from the single CDM DDL source
-
load_cdm_schema() - Parse the CDM DDL file into a neutral schema model
-
generate_ddl() - CREATE TABLE statements for a target database
-
lint_ddl() - Static lint of generated DDL
Production scoring and train/serve skew guard
A fitted imputer, scaler and model bundled with the ordered feature schema; scoring refuses frames that do not match it.
-
omop_scoring_pipeline() - Production scoring bundle with a train/serve skew guard
-
fit_scoring_pipeline() - Fit a scoring pipeline on a training data frame
-
validate_scoring_input() - Validate a frame against a scoring pipeline's schema
-
predict_scoring_pipeline()predict_scoring_class() - Score new patients with a scoring pipeline
-
save_scoring_pipeline()load_scoring_pipeline() - Save / load a scoring pipeline bundle
-
scoring_pipeline_out_of_range() - Rows per feature outside the min/max seen at fit time (a drift check)
Ecosystem bridges (HADES & tidymodels)
Interoperability with OHDSI HADES PatientLevelPrediction and R tidymodels / orbital scoring.
-
hades_preflight() - Check that a DuckDB file is ready for OHDSI HADES (PatientLevelPrediction / DeepPatientLevelPrediction)
-
hades_needs_integer64() - Does a CDM file hold ids that R doubles cannot represent?
-
readonly_attach_sql() - SQL to attach a CDM file (and its vocabulary) read-only on every connection (FR-D4)
-
readonly_connect_wrapper() - Wrap a connect function so every connection attaches the CDM read-only
-
checkpoint_database() - Checkpoint a DuckDB file so it can be distributed and attached
READ_ONLY -
hades_set_integer64() - Keep 63-bit surrogate keys exact in DatabaseConnector (FR-C9)
-
plp_database_details() - PatientLevelPrediction database details for an omop-duck-db DuckDB file
-
cm_database_details() - CohortMethod database connection details for an omop-duck-db DuckDB file
-
cohort_definition_set() - Build a CohortGenerator-ready
cohortDefinitionSetfrom the shipped eDERRI cohorts (FR-D3) -
cohort_definitions_dir() - The folder with the shipped cohort definitions
-
as_plp_data() - Turn a sparse concept matrix into a PatientLevelPrediction
plpData -
export_plp_study_package() - Automated OHDSI PatientLevelPrediction Study Package Generator
-
duckdb_to_andromeda() - Stream DuckDB Tables into an Andromeda Object
-
as_andromeda() - Convert DuckDB Tables to an Andromeda Object
-
as_tidymodels_data() - Sparse concept matrix as tidymodels-ready data
-
model_concepts() - Concepts a fitted model actually uses
-
materialize_concept_features() - Write concept features to a DuckDB table, for in-database scoring
Study-design features
Add your own person-level features (RUCA, SDI, census income, SQL or R-defined) to an OMOP study; fitted state travels with the model.
-
study_features - Study-design features: add your own person-level features to an OMOP study
-
study_feature() - Describe one study-design feature
-
feature_set()add_feature()remove_feature()feature_set_columns()check_feature_set() - Collect study-design features
-
ruca_feature()sdi_feature()area_feature()sql_feature()custom_feature() - Built-in study-design features
-
stays_from_cohort() - Index stays of a cohort table
-
compute_features() - Compute the features of a set for a group of index stays
-
write_feature_set() - Write computed features as
measurementrows so OHDSI tools read them -
feature_set_state()load_feature_state()feature_set_manifest()export_feature_manifest() - Fitted state and manifest of a feature set
-
feature_set_covariate_settings()feature_set_extraction_r() - OHDSI FeatureExtraction settings for a feature set
-
register_feature_factory()available_features()make_feature()feature_list() - Registry of feature kinds and named feature lists
Geography features (RUCA and SDI)
Area-level covariates derived from the address in effect at admission, with fixed training-cohort SDI cut points.
-
ruca_category()validate_sdi_cut_points()fit_sdi_cut_points()assign_sdi_quintile()read_ruca_crosswalk()read_sdi_table()derive_geography_features() - Area-level geography features (RUCA, SDI) for model replication
-
find_address_tables()resolve_address_table() - Find and choose the dated address table
-
write_geography_measurements() - Write derived area-level values as
measurementrows -
write_custom_covariates() - Add your own covariates so the OHDSI tools read them
-
write_custom_features() - Write your own features so the OHDSI tools read them
-
register_custom_concepts() - Concept ids for your own feature names
-
custom_concept_registry() - The custom concepts registered in a database
-
export_custom_concept_registry() - Write the custom concept registry so sites share concept ids
-
check_custom_concepts() - Check the custom concept ids of a database, alone and against other sites
-
stamp_feature_spec_concepts() - Record the custom concept ids in a feature spec
-
validate_bundle_concepts() - Compare the custom concept ids recorded in a bundle with this site's
-
custom_covariate_settings() - FeatureExtraction settings that read custom covariates
-
GEOGRAPHY_CONCEPT_IDS - Local concept ids of the geography measurements
-
encoded_column_names()encode_categoricals() - Deterministic one-hot encoding of categorical model features from fixed level lists
-
find_metformin_only_prediabetes_pcos() - Metformin-only prediabetes / PCOS patients
Data quality, Table 1, and Export
Run Data Quality Dashboard checks, build publication-grade Table 1s, and export datasets.
-
run_dqd() - Run Native DuckDB DataQualityDashboard (DQD) Engine
-
run_dqd_catalog() - Schema-driven DataQualityDashboard checks in DuckDB
-
run_dqd_full() run_dqd()andrun_dqd_catalog()in one DQD-shaped result-
explain_cohort_gaps() - Why is a reference patient not in the cohort?
-
reconcile_cohort() - Compare a reference patient list with a cohort built here and explain the patients we miss
-
suppress_small_cells() - Blank small counts so a report can leave a site
-
ablate_feature_groups() - How much does each group of features contribute?
-
compare_model_runs() - Are two sets of predictions for the same patients really different?
-
ridge_logistic_fit_predict() - Ridge-regularised logistic regression for the ablation tools
-
sanitize_measurements() - Sanitize implausible numeric measurements (physiologic limits or statistical outliers)
-
generate_table1() - Generate Table 1 and Completeness Matrix
-
export_table1() - Export Table 1 or Table 1b to Markdown, LaTeX, Quarto, Typst, or CSV
-
table1_to_quarto() - Format Table 1 into Publication-Grade Quarto Manuscript Syntax
-
table1_to_typst() - Format Table 1 into Native Typst Manuscript Table Syntax
-
generate_table3_odds_ratios() - Table 3: multivariable logistic-regression odds ratios with clinically scaled increments
-
export_table3() - Export a Table 3 odds-ratio table
-
to_markdown() - Convert Object to Markdown Table
-
to_latex() - Convert Object to LaTeX Table
-
validate_table1_reconciliation() - Validate Table 1 Reconciliation against Published Baseline
-
export_cdm() - Enterprise Multi-Target Export Engine for OMOP DuckDB CDM
-
export_to_parquet() - Export a CDM Table to Parquet
-
DEFAULT_LAB_LOINCS - Table 1 Descriptive Statistics Generator and Validation Harness
-
DEFAULT_MEDICATION_CONCEPTS - Default Core Chronic Medication Classes (ATC / RxNorm Ancestors)
-
DEFAULT_VITAL_LOINCS - Default Vital Sign LOINC Mappings
Causal inference and survival analysis
In-engine propensity score weighting (IPTW/SMR) and Kaplan-Meier / Competing Risks estimators.
-
generate_propensity_weights() - In-Engine Propensity Score and Inverse Probability of Treatment Weighting (IPTW) Module
-
estimate_km_survival() - Kaplan-Meier Survival and Fine-Gray Competing Risks Cumulative Incidence (CIF) Estimator
-
estimate_cif() - Cause-Specific Cumulative Incidence Function (CIF) Estimator
-
fine_gray_estimator() - Fine-Gray Subdistribution Hazard Estimator
-
plot_cif() - Plot Cumulative Incidence Function (CIF)
Wide-table ingestion, datetime normalization and file paths
Staged one-concept-per-commit loading of wide measurement tables, vectorized timestamp parsing, safe SQL file paths, and ETL source-view helpers.
-
load_wide_measurement() - Staged, sequential ingestion of wide measurement tables
-
DEFAULT_VITAL_CONCEPT_MAPPING - Default PCORnet VITAL concept mapping for
load_wide_measurement() -
DEFAULT_VITAL_PLAUSIBILITY_FILTERS - Default clinical plausibility bounds for PCORnet vitals
-
vectorized_strptime()normalize_time_sql() - Vectorized, fault-tolerant datetime normalization for messy EHR feeds
-
install_vectorized_strptime() - Register
normalize_time()andvectorized_strptime()SQL macros on a connection -
DEFAULT_DATETIME_FORMATS - Default prioritized datetime formats
-
sanitize_sql_path()sql_path_literal() - Cross-platform path sanitization for DuckDB file operations
-
read_csv_sql()read_parquet_sql()attach_database()sql_copy_to() - SQL table-function expressions and file operations with sanitized paths
-
build_safe_source_view() - Fault-tolerant view over a source CSV
-
configure_resources() - Size a DuckDB connection to the host: RAM limit, disk-spill location and threads
-
detect_system_ram() - Detect physical system RAM
Medication-class strategies and phenotype DSL
Dual-strategy (source crosswalk vs OMOP hierarchy) medication classification with a per-site kappa auditor, and a composable phenotype cohort DSL compiled to single-pass SQL.
-
extract_medication_classes() - Dual-strategy medication-class classifier
-
extract_medication_transitions() - Extract medication trajectory flags across care transitions
-
medication_transitions() - Transitions-of-care medication trajectories and trajectory summary statistics
-
audit_medication_strategies() - Per-site agreement audit of the source-crosswalk and OMOP-hierarchy strategies
-
condition_criteria()measurement_criteria()drug_criteria() - Composable phenotype cohort DSL compiled to single-pass DuckDB SQL
-
everyone() - All persons (base population for
!x) -
phenotype_union()phenotype_intersect()phenotype_not() - Logical operators over phenotype expressions
-
phenotype_to_list()phenotype_from_list() - Convert a phenotype expression to / from a plain list
-
compile_phenotype() - Compile a phenotype expression to DuckDB SQL
-
execute_phenotype() - Compile and run a phenotype into a cohort table
Bounds, units, domain profiles and cohort flow
Physiologic bounding and unit harmonization, clinical domain profiles for Table 1, medication windows, CONSORT cohort flow, completeness profiling and the Arrow hand-off to PatientLevelPrediction.
-
DEFAULT_PHYSIOLOGIC_BOUNDS - Default physiologic plausibility bounds (Adult)
-
POPULATION_PHYSIOLOGIC_BOUNDS - Pluggable physiologic bounding and unit harmonization for measurements
-
DEFAULT_UNIT_RULES - Default unit-conversion rules
-
resolve_bounds() - Resolve bounds: defaults merged with user overrides
-
filter_bounds() - Apply physiologic bounds to a data frame
-
harmonize_measurement_units() - Unit-normalization preflight for the measurement table
-
harmonize_anthropometrics() - Anthropometric Harmonization (Height, Weight, and Calculated BMI)
-
medication_extractor() - Medication exposure engine bound to a connection and drug-class specs
-
domain_profiles - Modular clinical domain profiles and
table1_generator() -
domain_profile_names() - Built-in domain profile names
-
load_domain_profile() - Load a domain profile
-
table1_generator() - Table 1 generator extended by clinical domain profiles
-
cohort_flow() - Sequential cohort filters, one set of counts, CONSORT outputs and pre-flight checks
-
to_graphviz() - Convert an attrition table to Graphviz DOT source
-
generate_table2() - Completeness / sentinel profiler ("Table 2")
-
as_plp_arrow() - Stream a wide feature table into PatientLevelPrediction-shaped Arrow tables
-
plp_arrow_to_plp_data() - Turn
as_plp_arrow()output into aplpDataobject
-
gdrive_upload_snapshot() - Upload the large generated artifacts to Google Drive
-
gdrive_download_latest() - Download the latest snapshot from Google Drive
Advanced analytics, causal inference, and data quality (v0.6.4)
Negative controls, semantic concept set optimizer, trajectory features, federated survival, and synthetic twins.
-
add_missing_indicators() - Add Missing Indicator Columns
-
assert_exposure_coverage() - Assert Non-Zero Medication Exposure Coverage Across Sites
-
audit_code_list_coverage() - Audit Clinical Code List Coverage
-
calibrate_estimates() - Calibrate Nominal Study Estimates Using Empirical Null Distribution
-
check_vocabulary_provenance() - Check Vocabulary Provenance Between Databases
-
cohort_diagnostics - OHDSI Cohort Diagnostics in Pure DuckDB
-
cohort_flow_tools cohort_flow()(computable phenotype + CONSORT),generate_table2()(completeness profiler) andas_plp_arrow()(in-memory Arrow hand-off to PatientLevelPrediction)-
cohort_from_index_stays() - Force Study Cohort Index Stays from an External List
-
cohort_overlap() - Cohort Reconciliation and Membership Overlap
-
compare_feature_tables() - Feature Parity Ledger Comparing Two Derivations
-
concept_optimizer - Semantic Concept Set Optimizer & Usagi Auto-Suggester Module
-
consortium_patient_overlap() - Consortium Patient Overlap
-
consortium_cross_site_duplicates() - Consortium Cross-Site Duplicate Patients
-
consortium_duplicate_report() - Cross-site duplicate patients as one object that holds only safe aggregates
-
consortium_propensity_score() - Consortium Causal Inference Propensity Engine
-
consortium_survival_meta_analysis() - Multi-Site Federated Survival Meta-Analysis
-
detect_redundant_features() - Detect Redundant and Derived Features (Constant Ratios, Differences, Collinearities)
-
dqd_summary() - Verify DQD Pass-Rate Mathematical Consistency and Reproducibility
-
explain_medication_disagreement() - Explain Strategy Disagreements for Medication Exposure
-
export_medication_crosswalk() - Export Medication Class Crosswalk from OMOP Hierarchy
-
extract_temporal_trajectories() - Extract Longitudinal Measurement Trajectory Features
-
federated_survival - Multi-Site Federated Survival Meta-Analysis Module
-
generate_negative_controls() - Generate Candidate Negative Control Concepts
-
generate_site_patient_tokens() - Generate Salted Site Patient Tokens
-
generate_synthetic_omop_twin() - Generate Synthetic OMOP Twin Database
-
integrity - Data Integrity, Statistical Leakage Scan, Informative Missingness, Provenance, and Overlap Tools
-
leakage_scan() - Statistical Leakage Scan
-
manuscript - End-to-End Manuscript Scaffold Builder
-
match_nearest_neighbor() - 1:k Nearest-Neighbor Caliper Matching on Propensity Scores
-
missingness_by_outcome() - Missingness Stratified by Outcome
-
negative_controls - Automated Negative Control & Empirical Calibration Module
-
numbers_of_record() - Numbers-of-Record Manifest
-
observation_period_diagnostics() - Observation Period Diagnostics
-
omopduckdbomopduckdb-package - omopduckdb: Build and Populate an OMOP CDM v5.4 Database in DuckDB
-
optimize_concept_set() - Optimize Concept Set and Suggest Missing Codes
-
panel_missingness_audit() - Audit Laboratory Panel Completeness and Discordant Missingness
-
planned_readmission_filter() - Planned-Readmission Filter
-
plausibility_report() - Table and Feature-Level Physiological Plausibility Report and CI Gate
-
plot_consort_flow() - Plot Visual Cohort Attrition Flow (CONSORT / Sankey)
-
small_cell_mask()format_count()suppress_small_counts()suppress_attrition_table()assert_disclosure_safe() - Small-cell suppression and disclosure control
-
audit_matrix_parity() - Parity audit between a legacy table and its OMOP-derived counterpart
-
plot_love_plot() - Generate SVG Love Plot for Covariate Balance
-
plot_multisite_attrition_heatmap() - Generate Multi-Site Attrition Heatmap
-
provenance() - Provenance Stamp
-
quality - Data Quality, Plausibility, and Feature Integrity Audits
-
reconciliation - Pipeline Reconciliation, Cohort Overlap, and Parity Ledger
-
run_study_grid() - Study Sensitivity Grid Execution
-
scan_document_numbers() - Scan Document Numbers for Stale Figures
-
synthetic - Automated Synthetic OMOP Twin Cohort Generator Module
-
trajectories - Longitudinal Temporal Trajectory Features Module
-
vocabulary_preflight() - Runs a comprehensive preflight verification of OMOP CDM vocabulary coverage, ATC hierarchies, unmapped concept 0 rates across clinical tables, and drug exposure types.
EHR prescriptions, adherence, and acute trajectories (v0.6.5 - v0.6.6)
Modern multi-vocabulary drug exposure routing, combination products, PDC adherence, unit discordance, and acute lab trajectories.
-
DEFAULT_PRESCRIBED_TYPE_CONCEPT_IDSDEFAULT_ADMINISTERED_TYPE_CONCEPT_IDSDEFAULT_DISPENSED_TYPE_CONCEPT_IDS - Default OMOP CDM concept sets for drug exposure types
-
KNOWN_UNIT_CONVERSIONS - Known laboratory unit conversions and standard ratios
-
audit_combination_products() - Combination Product Disaggregation Audit
-
compute_adherence_pdc() - Compute Adherence (PDC & MPR)
-
compute_drug_eras() - Compute Drug Eras On-The-Fly
-
detect_unit_discordance() - Detect Unit Discordance & Bimodal Normalization
-
export_companion_manifest() - Export Companion Identifier Manifest
-
extract_acute_trajectories() - Extract Acute In-Hospital Episode Trajectories
-
impute_encounter_observations() - Deterministic In-Encounter LOCF & Leakage-Safe Imputation
-
load_drug_exposure() - Load Drug Exposure Records from PCORnet Extract
-
load_macros() - Load SQL Macros into Connection
-
normalize_units() - Normalize Units
-
stream_to_parquet() - Stream object out-of-core to Parquet dataset
-
to_arrow_dataset() - Convert object to Arrow Dataset
-
extract_benchmark_features() - Leakage-free benchmark feature table in one call
-
adjust_for_prevalence() - Prior-shift correction between a training and a target prevalence
-
BENCHMARK_LAB_LOINCSBENCHMARK_VITAL_LOINCS - LOINC codes per lab and per vital sign for the benchmark feature table
-
build_concept_tokenizer() - Build a concept tokenizer (omop-learn layout)
-
capacity_risk_tiers() - Two risk tiers whose cut-point is set by capacity
-
capacity_threshold() - Probability cut-off that flags the riskiest share
-
DEFAULT_BOUNDSDEFAULT_RESCALEDEFAULT_UNIT_CONVERSIONS - Physiologic plausibility bounds and rescaling for single vital / lab measurements
-
DEFAULT_DISPOSITION_MAP - Discharge disposition concept -> benchmark category
-
EDERRI_MEDICATION_SPECS - Medication classes of the eDERRI protocol
-
evaluate_at_capacity() - What flagging the riskiest share achieves
-
evaluate_loso_transport() - Leave-one-site-out transport evaluation
-
export_concept_vocabulary()import_concept_vocabulary() - Freeze and share a tokenizer
-
extract_protocol_history_features() - The eDERRI protocol's history columns
-
fit_recalibrator() - Fit a recalibration map
-
isotonic_fit()isotonic_apply() - Isotonic recalibration (pool-adjacent-violators)
-
make_pretraining_targets() - Masked-concept and next-visit pre-training targets
-
platt_scaling_fit()platt_scaling_apply() - Platt scaling of probabilities
Hierarchical rollups, tabular loaders, concept patterns, fuzzy mappings, domain provenance, and Parquet crosswalk cache (v0.6.7 - v0.6.8)
Declarative multi-domain hierarchical rollups, native tabular and workbook loaders, bundled clinical code lists, concept set pattern matching, DuckDB in-database fuzzy string matching, clinical provenance filters, Parquet crosswalk materialization, and vocabulary drift auditing.
-
audit_concept_drift() - Audit Concept Drift Across Vocabulary Releases
-
concept_pattern() - Define a Concept Pattern Specification
-
extract_rollup_exposures() - Extract Cohort Exposures Matched to Rollup
-
filter_conditions() - Filter Conditions by Diagnostic Provenance
-
filter_measurements() - Filter Measurements by Clinical Provenance
-
filter_visits() - Filter Visits by Clinical Provenance
-
hierarchical_rollup() - Define a Hierarchical Rollup Specification
-
hierarchical_rollup_from_bundled() - Load Hierarchical Rollup from Bundled Reference Code Lists
-
hierarchical_rollup_from_csv() - Load Hierarchical Rollup from a CSV File
-
hierarchical_rollup_from_excel() - Load Hierarchical Rollup from an Excel Worksheet
-
materialize_crosswalk() - Materialize Crosswalk from Rollup Specification
-
DEFAULT_INPATIENT_VISIT_TYPE_CONCEPT_IDSDEFAULT_OUTPATIENT_VISIT_TYPE_CONCEPT_IDSDEFAULT_EMERGENCY_VISIT_TYPE_CONCEPT_IDSDEFAULT_PRIMARY_CONDITION_TYPE_CONCEPT_IDSDEFAULT_ADMITTING_CONDITION_TYPE_CONCEPT_IDSDEFAULT_PROBLEM_LIST_CONDITION_TYPE_CONCEPT_IDSDEFAULT_LAB_RESULT_MEASUREMENT_TYPE_CONCEPT_IDSDEFAULT_ORDER_MEASUREMENT_TYPE_CONCEPT_IDSDEFAULT_POC_MEASUREMENT_TYPE_CONCEPT_IDS - Modern OMOP CDM Visit, Condition, and Measurement Provenance Concept IDs
-
resolve_concept_patterns() - Resolve Concept Patterns with Wildcards and Hierarchy Closures
-
rollup_engine() - Define a Rollup Engine Specification
-
rollup_engine_from_bundled() - Load Rollup Engine from Bundled Reference Code Lists
-
rollup_engine_from_csvs() - Load Rollup Engine from a Sequence of CSV Files
-
rollup_engine_from_excel() - Load Rollup Engine from an Excel Workbook
-
rollup_engine_from_folder() - Load Rollup Engine by Scanning a Directory of CSV Files
-
rollups - Extensible Hierarchical Rollups, Concept Pattern Matching, and Crosswalk Materialization
-
spec_hash() - Compute Cryptographic SHA-256 Hash of Rollup Specification
-
suggest_source_mappings() - In-Database Fuzzy and Partial Matching for Unmapped Codes
Other exported functions and constants
Study-feature, disclosure, calibration and constant helpers not grouped above.
-
BENCHMARK_LAB_LOINCSBENCHMARK_VITAL_LOINCS - LOINC codes per lab and per vital sign for the benchmark feature table
-
DEFAULT_PRESCRIBED_TYPE_CONCEPT_IDSDEFAULT_ADMINISTERED_TYPE_CONCEPT_IDSDEFAULT_DISPENSED_TYPE_CONCEPT_IDS - Default OMOP CDM concept sets for drug exposure types
-
DEFAULT_INPATIENT_VISIT_TYPE_CONCEPT_IDSDEFAULT_OUTPATIENT_VISIT_TYPE_CONCEPT_IDSDEFAULT_EMERGENCY_VISIT_TYPE_CONCEPT_IDSDEFAULT_PRIMARY_CONDITION_TYPE_CONCEPT_IDSDEFAULT_ADMITTING_CONDITION_TYPE_CONCEPT_IDSDEFAULT_PROBLEM_LIST_CONDITION_TYPE_CONCEPT_IDSDEFAULT_LAB_RESULT_MEASUREMENT_TYPE_CONCEPT_IDSDEFAULT_ORDER_MEASUREMENT_TYPE_CONCEPT_IDSDEFAULT_POC_MEASUREMENT_TYPE_CONCEPT_IDS - Modern OMOP CDM Visit, Condition, and Measurement Provenance Concept IDs
-
DEFAULT_BOUNDSDEFAULT_RESCALEDEFAULT_UNIT_CONVERSIONS - Physiologic plausibility bounds and rescaling for single vital / lab measurements
-
extract_longitudinal_tensors()MAX_LONGITUDINAL_VISITSMAX_TOKENS_PER_VISITVOCAB_SIZE - Longitudinal sequence tensors for deep sequence models
-
feature_set()add_feature()remove_feature()feature_set_columns()check_feature_set() - Collect study-design features
-
ruca_feature()sdi_feature()area_feature()sql_feature()custom_feature() - Built-in study-design features
-
small_cell_mask()format_count()suppress_small_counts()suppress_attrition_table()assert_disclosure_safe() - Small-cell suppression and disclosure control
-
register_feature_factory()available_features()make_feature()feature_list() - Registry of feature kinds and named feature lists
-
population_stability_index()calibration_summary()monitor_scores()update_monitoring_log() - Post-deployment drift and calibration monitoring
-
check_key_collisions()check_etl_keys() - Build-time surrogate-key collision check
-
feature_set_state()load_feature_state()feature_set_manifest()export_feature_manifest() - Fitted state and manifest of a feature set
-
extract_patient_features()extract_features() - Extract Machine Learning Feature Matrix from OMOP CDM
-
feature_set_covariate_settings()feature_set_extraction_r() - OHDSI FeatureExtraction settings for a feature set
-
export_concept_vocabulary()import_concept_vocabulary() - Freeze and share a tokenizer
-
isotonic_fit()isotonic_apply() - Isotonic recalibration (pool-adjacent-violators)
-
load_vital() - Load PCORnet VITAL into measurement and observation
-
fit_capacity_thresholds()map_risk_tiers()tier_load() - Capacity-calibrated risk tiers
-
platt_scaling_fit()platt_scaling_apply() - Platt scaling of probabilities
-
run_manifest_add_step()run_manifest_add_input() - Add an input file or an attrition step to a run manifest