Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
493 lines (455 loc) · 21.2 KB
/
Copy pathindex.html
File metadata and controls
493 lines (455 loc) · 21.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="format-detection" content="telephone=no">
<title>index.html</title>
<style>
html { -webkit-text-size-adjust: 100%; }
body {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 14px; line-height: 1.428;
margin: 0 auto; padding: 0 15px;
}
h1, h2, h3, h4, h5, h6 { margin: 20px 0 10px; }
h1 { font-size: 28px; } h2 { font-size: 24px; }
h3 { font-size: 18px; } h4 { font-size: 16px; }
h5 { font-size: 14px; } h6 { font-size: 12px; }
a { color: #337AB7; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
ul, ol { padding-left: 30px; }
pre, code, samp {
font-size: 13px;
font-family: Courier, monospace;
}
code, samp {
background-color: #F5F5F5;
border-radius: 3px; padding: 3px;
}
pre code, pre samp {
white-space: pre; background: transparent;
border: none; padding: 0;
}
pre {
line-height: 1.33; background-color: #F5F5F5;
border: 1px solid #CCCCCC; border-radius: 3px;
padding: 8px; overflow: auto;
}
</style>
<!-- ═══════════════════════════════════════════════════════════════════════
webdoc2 default theme header
Injected into <head> via: wdinit myfile, replace
(or manually: webdoc init myfile, replace header2(include("header.html")))
To customise: copy this file, edit freely, then point wdinit at it:
wdinit myfile, replace headerfile("my_custom_header.html")
════════════════════════════════════════════════════════════════════════ -->
<!-- Bootstrap 5.3 CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" crossorigin="anonymous">
<!-- Google Fonts: Inter -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap" rel="stylesheet">
<!-- Bootstrap Icons (chevron for back-to-top button) -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css" rel="stylesheet">
<style>
/* ── Theme tokens — override here to change the colour scheme ────────────── */
:root {
--wd-primary: #1B2D55; /* navbar / headings / accents */
--wd-accent: #D44500; /* h2 underline, hover highlights */
--wd-link: #2B6CB0; /* body link colour */
--wd-light-bg: #F5F7FA; /* code blocks, TOC, accordion bg */
--wd-border: #DEE2E6;
--wd-text: #1A1A2E;
--wd-muted: #6C7A8D;
--wd-page-width: 90%; /* default content width; override with wdwidth command */
}
/* ── Always reserve scrollbar space; offset anchors below sticky navbar ──── */
html {
overflow-y: scroll;
scroll-behavior: smooth;
scroll-padding-top: 72px; /* matches navbar height so anchors aren't hidden */
}
/* ── Base typography ──────────────────────────────────────────────────────── */
body {
font-family: 'Inter', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
font-size: 15px;
line-height: 1.68;
color: var(--wd-text);
background-color: #ffffff;
}
/* ── Navbar ───────────────────────────────────────────────────────────────── */
.navbar {
background-color: var(--wd-primary) !important;
padding: 0.55rem 1.5rem;
box-shadow: 0 2px 10px rgba(0,0,0,0.18);
}
.navbar-brand {
font-size: 0.95rem;
font-weight: 700;
letter-spacing: 0.05em;
text-transform: uppercase;
color: #ffffff !important;
}
.navbar-toggler { border-color: rgba(255,255,255,0.4); }
.navbar-toggler-icon { filter: invert(1) brightness(2); }
.navbar-nav .nav-link {
font-size: 0.80rem;
font-weight: 500;
color: rgba(255,255,255,0.78) !important;
padding: 0.5rem 1.05rem !important;
letter-spacing: 0.07em;
text-transform: uppercase;
border-bottom: 2px solid transparent;
transition: color 0.16s ease, border-color 0.16s ease;
}
.navbar-nav .nav-link:hover {
color: #ffffff !important;
border-bottom-color: var(--wd-accent);
}
.navbar-nav .nav-link.active {
color: #ffffff !important;
border-bottom-color: var(--wd-accent);
font-weight: 600;
}
/* ── Navbar dropdowns ─────────────────────────────────────────────────────── */
.navbar .dropdown-menu {
background-color: #ffffff;
border: 1px solid var(--wd-border);
border-radius: 6px;
box-shadow: 0 4px 16px rgba(0,0,0,0.15);
margin-top: 0.25rem;
min-width: 180px;
}
.navbar .dropdown-item {
font-size: 0.85rem;
color: var(--wd-text);
padding: 0.45rem 1rem;
}
.navbar .dropdown-item:hover {
background-color: var(--wd-light-bg);
color: var(--wd-primary);
}
.navbar .dropdown-toggle::after { vertical-align: 0.1em; }
/* ── Headings ─────────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
font-weight: 700;
color: var(--wd-primary);
margin-top: 1.75rem;
margin-bottom: 0.55rem;
}
h1 { font-size: 1.85rem; }
h2 {
font-size: 1.35rem;
border-bottom: 3px solid var(--wd-accent);
padding-bottom: 0.28rem;
}
h3 { font-size: 1.12rem; }
h4 { font-size: 1rem; color: var(--wd-muted); }
/* ── Links ────────────────────────────────────────────────────────────────── */
a { color: var(--wd-link); text-decoration: none; }
a:hover { color: var(--wd-accent); text-decoration: underline; }
/* ── Stata log blocks ─────────────────────────────────────────────────────── */
pre.stlog {
background-color: var(--wd-light-bg);
border: 1px solid var(--wd-border);
border-left: 4px solid var(--wd-primary);
border-radius: 0 6px 6px 0;
padding: 0.9rem 1.2rem;
font-size: 12.5px;
line-height: 1.55;
overflow-x: auto;
margin-bottom: 1.1rem;
}
.stinp { color: var(--wd-primary); font-weight: 600; }
.stres { color: #145A32; }
.stcmt { font-style: italic; opacity: 0.55; }
/* ── Bootstrap accordion (button.ado / graphbutton.ado) ───────────────────── */
.accordion, .accordion-item, .accordion-body { max-width: 100%; }
.accordion-item {
border: 1px solid var(--wd-border);
border-radius: 6px !important;
overflow: hidden;
margin-bottom: 0.5rem;
}
.accordion-button {
font-size: 0.82rem;
font-weight: 500;
background-color: var(--wd-light-bg);
color: var(--wd-primary) !important;
}
.accordion-button:not(.collapsed) {
background-color: var(--wd-primary);
color: #ffffff !important;
box-shadow: none;
}
.accordion-button:not(.collapsed)::after { filter: invert(1) brightness(2); }
.accordion-body { padding: 1rem 1.2rem; background-color: #ffffff; overflow-x: auto; }
/* ── Lists ────────────────────────────────────────────────────────────────── */
/* wdlist (dashed) — LaTeX-like em-dash markers via ::before. */
ul.wd-list-dashed {
list-style: none;
padding-left: 1.2rem;
}
ul.wd-list-dashed > li {
position: relative;
padding-left: 1.2rem;
margin-bottom: 0.15rem;
}
ul.wd-list-dashed > li::before {
content: "—";
position: absolute;
left: 0;
color: var(--wd-primary);
font-weight: 600;
}
/* wditemize (round) and wdenumerate (numbers) use default browser markers. */
ul:not(.wd-list-dashed) > li,
ol > li { margin-bottom: 0.15rem; }
/* ── Figures ──────────────────────────────────────────────────────────────── */
figure { margin: 0.8rem 0; }
figure img {
border-radius: 6px;
box-shadow: 0 2px 14px rgba(0,0,0,0.09);
max-width: 100%;
height: auto;
}
/* ── In-page Table of Contents ────────────────────────────────────────────── */
.wd-toc-wrap {
background-color: var(--wd-light-bg);
border: 1px solid var(--wd-border);
border-left: 4px solid var(--wd-primary);
border-radius: 0 6px 6px 0;
padding: 0.9rem 1.25rem;
margin-bottom: 1.5rem;
display: inline-block;
min-width: 220px;
max-width: 480px;
}
.wd-toc-title {
display: block;
font-size: 0.78rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.09em;
color: var(--wd-primary);
margin-bottom: 0.45rem;
}
.wd-toc-list { margin: 0; padding: 0; list-style: none; }
.wd-toc-list a {
display: block;
color: var(--wd-primary);
font-size: 0.87rem;
line-height: 1.95;
text-decoration: none;
transition: color 0.14s;
}
.wd-toc-list a:hover { color: var(--wd-accent); }
.wd-toc-h2 { padding-left: 0.8rem; }
.wd-toc-h3 { padding-left: 1.6rem; font-size: 0.81rem; }
.wd-toc-h4 { padding-left: 2.4rem; font-size: 0.78rem; }
.wd-toc-h5 { padding-left: 3.2rem; font-size: 0.75rem; }
.wd-toc-h6 { padding-left: 4.0rem; font-size: 0.72rem; }
/* ── Page width — controlled by --wd-page-width; use wdwidth command to change */
.container,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.container-xxl {
max-width: var(--wd-page-width) !important;
}
/* ── Misc spacing ─────────────────────────────────────────────────────────── */
p { margin-bottom: 0.85rem; }
.container, .container-fluid { padding-top: 0.25rem; padding-bottom: 0.25rem; }
/* ── Back-to-top button ───────────────────────────────────────────────────── */
#wd-back-to-top {
display: none;
position: fixed;
bottom: 2rem; right: 2rem;
z-index: 9999;
width: 46px; height: 46px;
border-radius: 50%;
background-color: var(--wd-primary);
color: #ffffff;
border: none;
font-size: 1.3rem;
line-height: 46px;
text-align: center;
cursor: pointer;
box-shadow: 0 3px 14px rgba(0,0,0,0.22);
transition: background-color 0.18s;
padding: 0;
}
#wd-back-to-top:hover { background-color: var(--wd-accent); }
</style>
<!-- Bootstrap 5.3 JS Bundle — enables navbar toggler + accordion collapse -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js" defer crossorigin="anonymous"></script>
<script>
document.addEventListener('DOMContentLoaded', function () {
/* ── Back-to-top floating button ──────────────────────────────────────── */
var btn = document.createElement('button');
btn.id = 'wd-back-to-top';
btn.title = 'Back to top';
btn.setAttribute('aria-label', 'Back to top');
btn.innerHTML = '<i class="bi bi-chevron-up"></i>';
document.body.appendChild(btn);
window.addEventListener('scroll', function () {
btn.style.display = (window.scrollY > 320) ? 'block' : 'none';
});
btn.addEventListener('click', function () {
window.scrollTo({ top: 0, behavior: 'smooth' });
});
/* ── Auto-generate in-page TOC from headings ──────────────────────────── */
// Finds every element with class "wd-toc-wrap" and fills it with heading links.
// wdtoc.ado writes the container; this script fills it in.
// Depth controlled per-wrap via data-wd-depth (1..6, default 3).
document.querySelectorAll('.wd-toc-wrap').forEach(function (wrap) {
var depth = parseInt(wrap.getAttribute('data-wd-depth') || '3', 10);
if (isNaN(depth) || depth < 1) depth = 3;
if (depth > 6) depth = 6;
var selectors = [];
for (var d = 1; d <= depth; d++) selectors.push('h' + d);
var headings = Array.prototype.slice.call(
document.querySelectorAll(selectors.join(','))
).filter(function (h) {
// Skip headings inside navbar and accordion headers
return !h.closest('.navbar') && !h.classList.contains('accordion-header');
});
if (headings.length === 0) return;
var ul = document.createElement('ul');
ul.className = 'wd-toc-list';
headings.forEach(function (h, i) {
if (!h.id) h.id = 'wdtoc-h-' + i;
var li = document.createElement('li');
li.className = 'wd-toc-' + h.tagName.toLowerCase();
var a = document.createElement('a');
a.href = '#' + h.id;
a.textContent = h.textContent.trim();
li.appendChild(a);
ul.appendChild(li);
});
wrap.appendChild(ul);
});
/* ── Remove stray closing-command echoes from Stata log output ──────────── */
var _wdClosingCmds = ['wdclose', 'buttonclose', 'graphbuttonclose',
'wdnavbarclose', 'wdnavdropdownclose'];
document.querySelectorAll('span.stinp').forEach(function (span) {
var txt = span.textContent.replace(/^\s*\.\s*/, '').trim();
if (_wdClosingCmds.indexOf(txt) !== -1) {
var pre = span.closest('pre.stlog');
span.remove();
if (pre && pre.textContent.trim() === '') pre.remove();
}
});
});
</script>
<style>
.stcmd .stcmt { font-style: italic; opacity: 0.5; }
.stoom, .stcnp { font-style: italic; }
@media screen { .stcnp { display: none; }}
</style>
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark mb-3">
<div class="container-fluid">
<a class="navbar-brand" href="index.html" title="Insurance_PriceTransparency_BCBSTX">Documentation</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#mainNavbar" aria-controls="mainNavbar" aria-expanded="false" aria-label="Toggle navigation"><span class="navbar-toggler-icon"></span></button>
<div class="collapse navbar-collapse" id="mainNavbar">
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
<li class="nav-item"><a class="nav-link active" href="index.html">Home</a></li>
<li class="nav-item"><a class="nav-link " href="100_data_download.html">100 Download</a></li>
<li class="nav-item"><a class="nav-link " href="200_data_management.html">200 Management</a></li>
<li class="nav-item"><a class="nav-link " href="300_labels.html">300 Labels</a></li>
<li class="nav-item"><a class="nav-link " href="400_data_profiler.html">400 Profiler</a></li>
<li class="nav-item"><a class="nav-link " href="500_aggregation.html">500 Aggregation</a></li>
<li class="nav-item"><a class="nav-link " href="600_analysis.html">600 Analysis</a></li>
<li class="nav-item"><a class="nav-link " href="help.html">Help</a></li>
</ul>
<ul class="navbar-nav"><li class="nav-item"><a class="nav-link" href="https://www.bcbstx.com/member/machine-readable-files" target="_blank" rel="noopener" title="Source agency website">Source ↗</a></li></ul>
<span class="navbar-text ms-3" title="Texas 2036"><img src="tx2036_logo.png" alt="Texas 2036" height="18" style="opacity:0.55;vertical-align:middle;" onerror="this.style.display='none'"></span>
</div></div></nav>
<style>pre,.stlog,samp{white-space:pre !important;overflow-x:auto;display:block;font-size:0.8rem;line-height:1.25}table.tbl{font-size:0.85rem}</style>
<div class="container-fluid bg-light p-4 mb-4 rounded">
<h1 class="display-5">BCBS Texas — Negotiated Price Transparency</h1>
<p class="lead">Transparency-in-Coverage machine-readable files (in-network negotiated rates + prescription drugs) published by Blue Cross and Blue Shield of Texas (HCSC).</p>
<p>Source: <a href="https://www.bcbstx.com/member/machine-readable-files" target="_blank">https://www.bcbstx.com/member/machine-readable-files</a> · Cadence: monthly refresh (source files restated ~monthly)</p>
</div>
<h2 id="start-here">Start here</h2>
<p>New to this project? Read the full how-to first: <a href="guide/bcbstx_price_transparency_guide.pdf">BCBS Texas Price Transparency Guide (PDF)</a>. It explains where the data comes from, the unit of analysis, every inclusion decision, and how to analyze the data in Stata.</p>
<ul class="wd-list-dashed">
<li><b>Unit of analysis:</b> one row of <code>bcbstx_prices.dta</code> = one DISTINCT negotiated price for a procedure in a network, with provider COUNTS (not volume).</li>
<li><b>Scope:</b> BCBS Texas, both coverage segments, Texas providers (NPPES practice state = TX), a 93-code policy-team menu, plus a separate prescription-drug table.</li>
<li><b>Key limits:</b> no claims/volume, no Medicare benchmark, no sub-state geography yet — see the feasibility matrix in 600.</li>
</ul>
<h2 id="the-pipeline-each-page-is-a-stata-do-file">The pipeline (each page is a Stata do-file)</h2>
<ul class="wd-list-dashed">
<li><b><a href="100_data_download.html">100 Download</a></b> — Python pulls + filters the MRFs into <code>01_raw/_extracted/</code> (guarded; won't re-pull on a rebuild)</li>
<li><b><a href="200_data_management.html">200 Management</a></b> — import CSVs, attach the service menu, build the analytic <code>.dta</code></li>
<li><b><a href="300_labels.html">300 Labels</a></b> — plain-English variable + value labels</li>
<li><b><a href="400_data_profiler.html">400 Profiler</a></b> — coverage, data-quality, descriptive profiling (multi-snapshot ready)</li>
<li><b><a href="500_aggregation.html">500 Aggregation</a></b> — price-summary tables (median, dispersion) per service</li>
<li><b><a href="600_analysis.html">600 Analysis</a></b> — price-variation analyses, shoppable case studies, feasibility matrix, expansion menu</li>
<li><b><a href="help.html">Help</a></b> — how this archive + webdoc2 work</li>
</ul>
<h2 id="reference-documents">Reference documents</h2>
<ul class="wd-list-dashed">
<li><a href="guide/bcbstx_price_transparency_guide.pdf">Data download, cleaning & analysis guide (PDF)</a></li>
<li><a href="data_dictionary.csv">Data dictionary (every variable, plain English)</a></li>
<li><a href="data_elements_menu.csv">Data-elements menu (policy-team review)</a></li>
<li><a href="build_vs_buy.md">Build-vs-buy memo (aggregator options)</a></li>
<li><a href="03_output/feasibility_matrix.csv">Analysis feasibility matrix</a></li>
</ul>
<h2 id="inventory-snapshot">Inventory snapshot</h2>
<p>Auto-generated at build time from <code>_datashare/Insurance_PriceTransparency/BCBSTX</code>.</p>
<pre id="stlog-1" class="stlog"><samp><span class="stinp">. di as txt "02_cleaned/ (analytic .dta)"</span>
02_cleaned/ (analytic .dta)
<span class="stinp">. local clfiles : dir "${clean}" files "*.dta"</span>
<span class="stinp">. foreach f of local clfiles {</span>
2<span class="stinp">. use "${clean}/`f'", clear</span>
3<span class="stinp">. di as txt " - `f' (rows=`=_N' vars=`=c(k)')"</span>
4<span class="stinp">. }</span>
(BCBS Texas prescription-drug negotiated prices (1 row = 1 distinct NDC price).)
- bcbstx_rx_prices.dta (rows=1198555 vars=17)
(BCBSTX price summary by procedure x provider type x network x snapshot)
- bcbstx_price_summary_by_network.dta (rows=1703 vars=22)
(BCBS Texas negotiated prices (1 row = 1 distinct price). See 300_labels.do.)
- bcbstx_prices.dta (rows=2097564 vars=33)
(BCBS Texas — Texas organizations by network (network-membership directory; raw).)
- bcbstx_provider_org_directory.dta (rows=192438 vars=5)
(BCBSTX price summary by procedure x provider type (all networks))
- bcbstx_price_summary.dta (rows=167 vars=20)
(Medicare national allowed amount per code (MPFS/OPPS/IPPS). Built by build_medic)
- bcbstx_medicare_benchmark.dta (rows=121 vars=5)
<span class="stinp">. di as txt _n "03_output/ (figures + tables)"</span>
03_output/ (figures + tables)
<span class="stinp">. local outfiles : dir "${out}" files "*"</span>
<span class="stinp">. foreach f of local outfiles {</span>
2<span class="stinp">. di as txt " - `f'"</span>
3<span class="stinp">. }</span>
- p600_region_colonoscopy.png
- p600_map_county_99214.png
- p600_case_professional.png
- price_summary_by_network.csv
- price_summary.csv
- p600_map_senate_price.png
- p600_case_facility.png
- p600_map_house_price.png
- p400_rate_basis.png
- p600_colonoscopy_by_network.png
- p600_map_zip_supply.png
- p600_pct_of_medicare.png
- p600_dispersion_rank_professional.png
- p600_rx_brand_generic.png
- p600_dispersion_by_region.png
- p600_map_senate_supply.png
- p600_map_region_99214.png
- p600_prof_vs_facility.png
- feasibility_matrix.csv
</samp></pre>
<h2 id="built">Built</h2>
<p>Last rebuilt <code>31 May 2026 18:56:32</code> by <code>ericbooth</code>.</p>
</body>
</html>