Skip to content

Latest commit

 

History

History
83 lines (63 loc) · 4.01 KB

README.md

File metadata and controls

83 lines (63 loc) · 4.01 KB

Apache License dbt logo and version

Medicare CCLF Connector

🔗 Docs

Check out our docs to learn about the project and how you can use it.

🧰 What does this repo do?

The Medicare CCLF Connector is a dbt project that maps raw Medicare CCLF claims data to the Tuva Input Layer, which is the first step in running the Tuva Project. This connector expects your CCLF data to be organized into the tables outlined in this CMS data dictionary, which is the most recent format CMS uses to distribute CCLF files.

🔌 Database Support

  • BigQuery
  • Redshift
  • Snowflake

✅ Quickstart Guide

Step 1: Clone or Fork this Repository

Unlike the Tuva Project, this repo is a dbt project, not a dbt package. Clone or fork this repository to your local machine.

Step 2: Import the Tuva Project

Next you need to import the Tuva Project dbt package into the Medicare CCLF Connector dbt project. For example, using dbt CLI you would cd into the directly where you cloned this project to and run dbt deps to import the latest version of the Tuva Project.

Step 3: Data Preparation

Source data:

The source table names the connector is expecting can be found in the _sources.yml config file. You can rename your source tables if needed or add an alias to the config.

File Dates:

The field file_date is used throughout this connector to deduplicate data received across regular and run-out CCLFs. We recommend parsing this date from the filename (e.g., P.A****.ACO.ZC1Y**.Dyymmdd.Thhmmsst) and formatting it as "YYYY-MM-DD".

Enrollment Dates:

The CCLF specification does not have a field that can be mapped directly to enrollment_start_date and enrollment_end_date, and the Part A and Part B entitlement dates (BENE_PART_A_ENRLMT_BGN_DT, BENE_PART_B_ENRLMT_BGN_DT) are often incorrect or not useful for claims analytics.

We have included an additional source called Enrollment that can be populated with enrollment dates relevant to your data. These enrollment dates may come from an attribution file, beneficiary alignment report (BAR), or any source you may have. You just need to create a source table with the following columns:

  1. current_bene_mbi_id
  2. enrollment_start_date
  3. enrollment_end_date
  4. bene_member_month
    • The connector includes logic to handle enrollment spans or member months.
    • If enrollment spans are available, leave this field null.
    • If enrollment spans are not available, populate this field with member month dates in the format "YYYY-MM-DD" and set the variable member_months_enrollment to true in the dbt_project.yml file.

Step 4: Configure Input Database and Schema

Next you need to tell dbt where your Medicare CCLF source data is located. Do this using the variables input_database and input_schema in the dbt_project.yml file. You also need to configure your profile in the dbt_project.yml.

Step 5: Run

Finally, run the connector and the Tuva Project. For example, using dbt CLI you would cd to the project root folder in the command line and execute dbt build.

Now you're ready to do claims data analytics!

🙋🏻‍♀️ How do I contribute?

Have an opinion on the mappings? Notice any bugs when installing and running the project? If so, we highly encourage and welcome feedback! While we work on a formal process in Github, we can be easily reached on our Slack community.

🤝 Join our community!

Join our growing community of healthcare data practitioners on Slack!