Harshu-Pande commited on
Commit
c0d15c8
·
verified ·
1 Parent(s): 649945a

Dataset card for release 2026-10

Browse files
Files changed (1) hide show
  1. README.md +108 -0
README.md ADDED
@@ -0,0 +1,108 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ pretty_name: RateCommons Cigna in-network rates
3
+ license: other
4
+ tags: [healthcare, price-transparency, transparency-in-coverage, insurance, parquet]
5
+ configs:
6
+ - config_name: rate_fact
7
+ data_files:
8
+ - split: release_2026_10
9
+ path: "release=2026-10/rate_fact/*.parquet"
10
+ - config_name: network_set
11
+ data_files:
12
+ - split: release_2026_10
13
+ path: "release=2026-10/network_set/*.parquet"
14
+ - config_name: network
15
+ data_files:
16
+ - split: release_2026_10
17
+ path: "release=2026-10/network.parquet"
18
+ - config_name: source_file
19
+ data_files:
20
+ - split: release_2026_10
21
+ path: "release=2026-10/source_file.parquet"
22
+ - config_name: code
23
+ data_files:
24
+ - split: release_2026_10
25
+ path: "release=2026-10/code.parquet"
26
+ - config_name: provider_set
27
+ data_files:
28
+ - split: release_2026_10
29
+ path: "release=2026-10/provider_set/*.parquet"
30
+ - config_name: provider_group
31
+ data_files:
32
+ - split: release_2026_10
33
+ path: "release=2026-10/provider_group.parquet"
34
+ - config_name: price_list
35
+ data_files:
36
+ - split: release_2026_10
37
+ path: "release=2026-10/price_list/*.parquet"
38
+ - config_name: price_term
39
+ data_files:
40
+ - split: release_2026_10
41
+ path: "release=2026-10/price_term/*.parquet"
42
+ ---
43
+
44
+ # RateCommons: Cigna in-network rates
45
+
46
+ Every in-network rate Cigna published under the Transparency in Coverage rule, parsed, deduplicated across files and stored as Parquet. Part of RateCommons, a free public dataset of negotiated health care prices. Code: https://github.com/Harshu-Pande/ratecommons
47
+
48
+ Release `2026-10`: 124 source files, 304,709,442 distinct rate facts from 1,928,514,784 published rate rows, 11.6 GB.
49
+
50
+ ## Tables
51
+
52
+ | Table | Rows | What it holds |
53
+ | --- | ---: | --- |
54
+ | `rate_fact` | 304,709,442 | One row per distinct rate fact: a billing code, a provider set and a price list, with the set of networks it appears in (`ns_id`). Sorted by code. 16 parts by billing code. |
55
+ | `network_set` | 13,688 | `ns_id` -> the sorted list of `network_id`s sharing those facts. One file per `rate_fact` part, so a set can repeat across files. |
56
+ | `network` | 124 | One row per derived network: distinct file content (size and gzip trailer). |
57
+ | `source_file` | 124 | One row per source file: name, URL, size, gzip fingerprint, header, counts, parser flags, and its `network_id`. |
58
+ | `code` | 116,566 | Billing codes as published (type, version, code, arrangement), keyed by `code_id`. Descriptor text is withheld where it is licensed (see below). |
59
+ | `provider_set` | 1,659,291 | `ps_id` -> the provider groups (`pg_ids`) a rate applies to. |
60
+ | `provider_group` | 664,715 | `pg_id` -> TIN (type, normalized value, raw values) and sorted NPI list; `tin_wide` when the file lists NPI 0 (the whole TIN). Business names are hints only. |
61
+ | `price_list` | 28,290,701 | `pl_id` -> the price terms (`pt_ids`) of one negotiated_prices list. |
62
+ | `price_term` | 9,390,706 | `pt_id` -> one negotiated price: type, amount (`rate_e4` = dollars x 10,000, plus `rate_raw` exactly as published), billing class, setting, service codes, modifiers, expiration date, additional information, parsed revenue-code ranges and flags. |
63
+
64
+ ## How the pieces fit
65
+
66
+ IDs are content hashes (xxh3-128 over a canonical encoding of the values), so the same provider group, provider set, price term or price list gets the same ID in every file, release and payer. `code_id` also covers the payer's own wording (name, description, arrangement), so join codes across payers on `billing_code_type` and `billing_code`. A rate is the join
67
+
68
+ ```
69
+ rate_fact -> code (code_id)
70
+ -> provider_set (ps_id) -> provider_group (pg_ids)
71
+ -> price_list (pl_id) -> price_term (pt_ids)
72
+ -> network_set (ns_id) -> network / source_file (network_ids)
73
+ ```
74
+
75
+ Example with DuckDB (reads only what the query needs):
76
+
77
+ ```sql
78
+ INSTALL httpfs; LOAD httpfs;
79
+ CREATE VIEW fact AS SELECT * FROM 'hf://datasets/ratecommons/cigna/release=2026-10/rate_fact/*.parquet';
80
+ CREATE VIEW ps AS SELECT ps_id, unnest(pg_ids) AS pg_id FROM 'hf://datasets/ratecommons/cigna/release=2026-10/provider_set/*.parquet';
81
+ CREATE VIEW pg AS SELECT * FROM 'hf://datasets/ratecommons/cigna/release=2026-10/provider_group.parquet';
82
+ CREATE VIEW pl AS SELECT pl_id, unnest(pt_ids) AS pt_id FROM 'hf://datasets/ratecommons/cigna/release=2026-10/price_list/*.parquet';
83
+ CREATE VIEW pt AS SELECT * FROM 'hf://datasets/ratecommons/cigna/release=2026-10/price_term/*.parquet';
84
+
85
+ SELECT pg.tin_value, pg.npis, pt.negotiated_type, pt.rate_e4 / 1e4 AS rate, pt.rate_raw,
86
+ pt.billing_class, pt.setting, pt.service_code, fact.ns_id
87
+ FROM fact JOIN ps USING (ps_id) JOIN pg USING (pg_id) JOIN pl USING (pl_id) JOIN pt USING (pt_id)
88
+ WHERE fact.billing_code_type = 'CPT' AND fact.billing_code = '99213'
89
+ AND pg.tin_value = '123456789'; -- a 9-digit EIN
90
+ ```
91
+
92
+ `rate_fact` is split into 16 parts by `xxh3_64(billing_code_type + '\x1f' + billing_code) % 16`, so a lookup by code can read one part. Files are ZSTD Parquet sorted by code, then provider set.
93
+
94
+ ## Reading it correctly
95
+
96
+ - A missing rate means "no published rate", never "out of network".
97
+ - A network here is a derived one: one distinct source file. `network_set` says which files carry a fact; `source_file.name` names the file (its product or region). Plan-to-file mappings are in the payer's table of contents, archived daily in `ratecommons/raw-manifests`.
98
+ - Rates keep the published string (`rate_raw`) next to the integer amount (`rate_e4`, ten-thousandths of a dollar). `percentage` rates are percents, not dollars. Read `negotiated_type`, `billing_class` and `setting` before comparing amounts.
99
+ - Provider identity is TIN plus NPI list. Names in payer files (`business_names`, network names) are not identities.
100
+ - Nothing is dropped for being odd: deviations from the schema are kept and counted as flags (`price_term.flags`, `source_file.flags`), for example placeholder amounts of $0.01 or several amounts under identical terms.
101
+
102
+ ## Code descriptions
103
+
104
+ Code numbers are published; descriptor text is not always ours to republish. Text is withheld (`code.text_withheld = true`, `name` and `description` empty) for CPT (AMA), CDT (ADA), revenue codes and proprietary DRG groupers, including descriptions inside `bundle`. HCPCS Level II, MS-DRG, ICD, APC, HIPPS, NDC and payer-defined codes keep their published text.
105
+
106
+ ## Provenance and license
107
+
108
+ Source: Cigna's machine-readable files published under 45 CFR 147.212 (Transparency in Coverage). `source_file` lists every file with its URL and fingerprint. RateCommons makes no claim to the underlying rates. This is not medical, legal or financial advice; a published rate is not a quote of what a patient will pay.