Warehouse · Import Guide

Analyze a Versioned NPI Release in BigQuery

Load provider rows into a partitioned analytical table while preserving release metadata.

Official BigQuery import documentation

Before You Start

  • A reviewed release artifact
  • A BigQuery dataset
  • A Cloud Storage staging location

Step-by-Step

  1. 1

    Verify and stage

    Validate the release checksum before uploading the artifact.

  2. 2

    Define the schema

    Declare NPI and taxonomy codes as STRING and dates explicitly.

  3. 3

    Load the CSV

    Use a named load job and retain its job ID with the release record.

  4. 4

    Validate counts

    Compare loaded rows and required-field coverage to the manifest.

  5. 5

    Create release views

    Expose a stable view that points at the approved release table.

Field Mapping Reference

Our CSV ColumnBigQuery FieldNote
npinpiKeep as text to preserve all ten digits
provider_nameprovider_name
primary_taxonomyprimary_taxonomy
practice_statepractice_state
source_updated_atsource_updated_atParse as a date

Tips for Better Results

Cluster common filters such as state and taxonomy.
Add release_id as a required column.
Keep raw and curated datasets separate.

Need the data contract first? Review the synthetic schema preview and published release methodology before importing a future delivered artifact.

Get the Agent List

Frequently Asked Questions

Should NPI be stored as a number?

No. Store NPI as a ten-character string so formatting and leading-zero behavior are explicit.

How do I verify the imported file?

Compare the file checksum and imported row count with the versioned release manifest before using the data.

Other Import Guides