Repository navigation
Expand file tree
/
Copy path500_aggregation.html
More file actions
450 lines (411 loc) · 20.1 KB
/
Copy path500_aggregation.html
File metadata and controls
450 lines (411 loc) · 20.1 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
<!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>500_aggregation.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 " 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>
<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>
<h1 id="500-aggregation">500. Aggregation</h1>
<p>Price summaries per shoppable service, by network and by professional/facility, restricted to comparable fee-for-service dollar prices.</p>
<div style="border-left:4px solid #E8A33D;background:#fff8ec;padding:.6rem .9rem;margin:.6rem 0;font-size:.9rem"><b>Read medians, not means.</b> These summaries still include <b>"ghost rates"</b> — placeholder prices for services a provider never actually bills (often a tiny fraction of Medicare). They drag the lower tail and the mean down but barely move the median. We do not hard-drop them (any cutoff is a judgement call); the analysis page flags prices below 25% of Medicare. See the guide section on ghost rates.</div>
<div id="wd-toc" class="wd-toc-wrap" data-wd-depth="2"><strong class="wd-toc-title">Contents</strong></div>
<h2 id="summary-by-procedure-x-provider-type-x-network-x-snapshot">Summary by procedure x provider-type x network x snapshot</h2>
<pre id="stlog-1" class="stlog"><samp><span class="stinp">. di as result "saved price summary by network: `=_N' rows"</span>
<span class="stres">saved price summary by network: 1703 rows</span>
</samp></pre>
<h2 id="summary-by-procedure-x-provider-type-across-networks">Summary by procedure x provider-type (across networks)</h2>
<pre id="stlog-2" class="stlog"><samp><span class="stinp">. di as result "saved overall price summary: `=_N' rows"</span>
<span class="stres">saved overall price summary: 167 rows</span>
<span class="stinp">. di as txt _n "Most price-dispersed services (top 15 by p90/p10, n>=20 prices):"</span>
Most price-dispersed services (top 15 by p90/p10, n>=20 prices):
</samp></pre>
<pre id="stlog-3" class="stlog"><samp><span class="stinp">. list service_label provider_type p50 p10 p90 p9010 n_prices <span class="stcmt">///</span>
> if n_prices>=20 in 1/`=min(_N,15)', noobs sep(0) abbreviate(26)</span>
+---------------------------------------------------------------------------------------------------------+
| <span class="stres"> service_label provider_type p50 p10 p90 p9010 n_prices </span>|
|---------------------------------------------------------------------------------------------------------|
| <span class="stres"> Total shoulder arthroplasty institutional 3248.91 1375.12 28807.94 20.9494 3717 </span>|
| <span class="stres"> Total hip arthroplasty institutional 12539.82 1428.88 29751.77 20.82174 3558 </span>|
| <span class="stres"> ED visit level 5 institutional 572.94 260.43 5080 19.5062 3686 </span>|
| <span class="stres"> Total knee arthroplasty institutional 13159.8 1540.34 29751.77 19.31507 3549 </span>|
| <span class="stres"> ED visit level 4 institutional 386.97 177.76 3040 17.10171 3846 </span>|
| <span class="stres"> ED visit level 3 institutional 245.67 111.67 1456 13.03842 3831 </span>|
| <span class="stres"> CT head/brain wo contrast professional 80.61 30.46 326.6 10.72226 24258 </span>|
| <span class="stres"> Polysomnography sleep study professional 337.83 94.28 863.57 9.159631 27628 </span>|
| <span class="stres"> Office visit new pt 15-29min institutional 66.72 25.77 221.62 8.599922 3217 </span>|
| <span class="stres"> Office visit est pt 30-39min institutional 108.01 40.01 342.44 8.55886 3148 </span>|
| <span class="stres"> Office visit new pt 45-59min institutional 178.14 65.59 557.51 8.499924 3113 </span>|
| <span class="stres"> MRI brain w/wo contrast institutional 492.88 252.78 2046.72 8.096843 3652 </span>|
| <span class="stres">Echocardiogram complete w Doppler institutional 152.38 69.27 548.82 7.92291 3735 </span>|
| <span class="stres"> Office visit est pt 10-19min institutional 29.23 12.97 101.46 7.822668 4076 </span>|
| <span class="stres"> Antepartum care 4-6 visits institutional 617.57 378.63 2937.12 7.75723 1773 </span>|
+---------------------------------------------------------------------------------------------------------+
</samp></pre>
</body>
</html>