Repository navigation
Expand file tree
/
Copy path400_data_profiler.html
More file actions
655 lines (574 loc) · 32.3 KB
/
Copy path400_data_profiler.html
File metadata and controls
655 lines (574 loc) · 32.3 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
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
<!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>400_data_profiler.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 active" 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="400-data-profiler">400. Data profiler</h1>
<p>Coverage, data-quality, and descriptive profiling. Built to run on one snapshot now and on a stacked multi-month panel later (keyed on <code>run_date</code>).</p>
<div id="wd-toc" class="wd-toc-wrap" data-wd-depth="2"><strong class="wd-toc-title">Contents</strong></div>
<h2 id="snapshot-scope">Snapshot scope</h2>
<pre id="stlog-1" class="stlog"><samp><span class="stinp">. di as txt "Monthly snapshots (run_date) in this file : `nsnap' (`snaps')"</span>
Monthly snapshots (run_date) in this file : 1 (2026-05-30)
<span class="stinp">. di as txt "Distinct medical price rows : `=_N'"</span>
Distinct medical price rows : 2097564
</samp></pre>
<pre id="stlog-2" class="stlog"><samp><span class="stinp">. di as txt "Networks : `: word count `nn''"</span>
Networks : 11
</samp></pre>
<pre id="stlog-3" class="stlog"><samp><span class="stinp">. di as txt "Procedure codes present : `: word count `pc''"</span>
Procedure codes present : 93
<span class="stinp">. di as txt "NOTE run_date is the snapshot key; file_vintage is the source file's"</span>
NOTE run_date is the snapshot key; file_vintage is the source file's
<span class="stinp">. di as txt " production date (provenance only — it varies within one pull)."</span>
production date (provenance only — it varies within one pull).
</samp></pre>
<h2 id="service-menu-coverage-which-procedures-appeared">Service-menu coverage (which procedures appeared)</h2>
<p>Which of the policy team's 93 menu codes showed up this run. Missing codes are listed explicitly — they are NOT analyzable until a future run includes them.</p>
<pre id="stlog-4" class="stlog"><samp><span class="stinp">. count if _merge==3</span>
<span class="stres">93</span>
<span class="stinp">. di as txt "Menu codes FOUND in data : `r(N)'"</span>
Menu codes FOUND in data : 93
<span class="stinp">. count if _merge==2</span>
<span class="stres">0</span>
<span class="stinp">. di as err "Menu codes NOT found : `r(N)' (cannot be analyzed this run)"</span>
Menu codes NOT found : 0 (cannot be analyzed this run)
<span class="stinp">. list procedure_code short_label if _merge==2, noobs sep(0) abbreviate(28)</span>
</samp></pre>
<h2 id="rate-basis-composition-data-quality-profile">Rate-basis composition (data-quality profile)</h2>
<p>The payer-MRF analogue of Texas 2036's hospital-file methodology audit. Only fee-for-service, dollar-denominated rates are comparable as unit prices; percentage-of-charge and per-diem are kept but flagged out of dollar comparisons.</p>
<pre id="stlog-5" class="stlog"><samp><span class="stinp">. tabulate rate_basis provider_type, row</span>
+----------------+
| Key |
|----------------|
| <i>frequency</i> |
| <i>row percentage</i> |
+----------------+
How to |
read |
amount |
(negotiate |
d$, fee |
schedule, | Professional
percentage | (clinician) /
, per | institutional
diem, | (facility) / both
derived) | institu.. profess.. | Total
-----------+----------------------+----------
negotiated |<span class="stres"> 424,155 1,478,055 </span>|<span class="stres"> 1,902,210 </span>
<span class="stres"> </span>|<span class="stres"> 22.30 77.70 </span>|<span class="stres"> 100.00 </span>
-----------+----------------------+----------
per diem |<span class="stres"> 82,269 0 </span>|<span class="stres"> 82,269 </span>
<span class="stres"> </span>|<span class="stres"> 100.00 0.00 </span>|<span class="stres"> 100.00 </span>
-----------+----------------------+----------
percentage |<span class="stres"> 106,850 6,235 </span>|<span class="stres"> 113,085 </span>
<span class="stres"> </span>|<span class="stres"> 94.49 5.51 </span>|<span class="stres"> 100.00 </span>
-----------+----------------------+----------
Total |<span class="stres"> 613,274 1,484,290 </span>|<span class="stres"> 2,097,564 </span>
<span class="stres"> </span>|<span class="stres"> 29.24 70.76 </span>|<span class="stres"> 100.00 </span>
<span class="stinp">. di as txt _n "Comparable dollar prices flag (dollar_ffs): 1 = ffs + negotiated/fee-schedule \$"</span>
Comparable dollar prices flag (dollar_ffs): 1 = ffs + negotiated/fee-schedule $
<span class="stinp">. tab dollar_ffs</span>
Comparable |
unit price |
(ffs + |
dollar |
basis) — |
filter for |
$ analysis | Freq. Percent Cum.
------------+-----------------------------------
0 No |<span class="stres"> 195,354 9.31 9.31</span>
1 Yes |<span class="stres"> 1,902,210 90.69 100.00</span>
------------+-----------------------------------
Total |<span class="stres"> 2,097,564 100.00</span>
</samp></pre>
<p><img src="03_output/p400_rate_basis.png" class="img-fluid" style="max-width:920px;border:1px solid #ddd" alt="figure"></p>
<h2 id="professional-vs-institutional-and-care-setting">Professional vs institutional, and care setting</h2>
<pre id="stlog-6" class="stlog"><samp><span class="stinp">. tabulate provider_type care_setting</span>
Professional |
(clinician) / | Care setting
institutional | (inpatient /
(facility) / | outpatient / both)
both | inpatient outpati.. | Total
--------------+----------------------+----------
institutional |<span class="stres"> 283,321 329,953 </span>|<span class="stres"> 613,274 </span>
professional |<span class="stres"> 0 1,484,290 </span>|<span class="stres"> 1,484,290 </span>
--------------+----------------------+----------
Total |<span class="stres"> 283,321 1,814,243 </span>|<span class="stres"> 2,097,564 </span>
</samp></pre>
<h2 id="place-of-service-why-office-vs-hopd-site-neutral-is-not-separable-here">Place-of-service: why office-vs-HOPD site-neutral is NOT separable here</h2>
<p>IMPORTANT data limitation. In the BCBSTX professional file one negotiated price applies to a SET of place-of-service codes (e.g., "11;17;20;50;72;81"), not one POS. So an office (POS 11) vs hospital-outpatient (POS 22) "site-neutral" comparison is NOT separable within this payer's professional rates. The feasible site-of-care lens is PROFESSIONAL (physician) vs INSTITUTIONAL (facility) — done in 600.</p>
<pre id="stlog-7" class="stlog"><samp><span class="stinp">. count if provider_type=="professional" & strpos(place_of_service,";")>0</span>
<span class="stres">1,484,290</span>
<span class="stinp">. di as txt "Professional rows whose price spans MULTIPLE POS codes: `r(N)'"</span>
Professional rows whose price spans MULTIPLE POS codes: 1484290
</samp></pre>
<pre id="stlog-8" class="stlog"><samp><span class="stinp">. count if provider_type=="professional" & pos_has11 & pos_has22</span>
<span class="stres">380,056</span>
<span class="stinp">. di as txt "Professional prices covering BOTH office (POS 11) and HOPD (POS 22) in one row: `r(N)'"</span>
Professional prices covering BOTH office (POS 11) and HOPD (POS 22) in one row: 380056
<span class="stinp">. di as txt " -> confirms one rate, many settings (POS is not a price lever in this file)."</span>
-> confirms one rate, many settings (POS is not a price lever in this file).
</samp></pre>
<h2 id="sanity-of-dollar-prices-fee-for-service-dollar-basis">Sanity of dollar prices (fee-for-service, dollar basis)</h2>
<pre id="stlog-9" class="stlog"><samp><span class="stinp">. di as txt "Comparable dollar prices: `=_N'"</span>
Comparable dollar prices: 1902210
<span class="stinp">. summarize negotiated_amount, detail</span>
Negotiated price (US$; a percent when
rate_basis=percentage)
-------------------------------------------------------------
Percentiles Smallest
1% <span class="stres"> 0 0</span>
5% <span class="stres"> 0 0</span>
10% <span class="stres"> 5 0 </span>Obs <span class="stres"> 1,902,210</span>
25% <span class="stres"> 40.85 0 </span>Sum of wgt. <span class="stres"> 1,902,210</span>
50% <span class="stres"> 104.03 </span>Mean <span class="stres"> 714.5966</span>
<span class="stres"> </span>Largest Std. dev. <span class="stres"> 3345.016</span>
75% <span class="stres"> 303.86 271524.4</span>
90% <span class="stres"> 1108.24 271524.4 </span>Variance <span class="stres"> 1.12e+07</span>
95% <span class="stres"> 2180.96 271524.4 </span>Skewness <span class="stres"> 15.37108</span>
99% <span class="stres"> 13945.08 271524.4 </span>Kurtosis <span class="stres"> 478.5721</span>
<span class="stinp">. count if negotiated_amount<=0</span>
<span class="stres">173,940</span>
<span class="stinp">. di as err " prices <= \$0 (suspect / placeholder): `r(N)'"</span>
prices <= $0 (suspect / placeholder): 173940
<span class="stinp">. count if negotiated_amount>200000</span>
<span class="stres">9</span>
<span class="stinp">. di as txt " prices > \$200,000 (verify; plausible for some inpatient DRGs): `r(N)'"</span>
prices > $200,000 (verify; plausible for some inpatient DRGs): 9
</samp></pre>
<h2 id="price-summary-by-service-category-medians-professional-vs-facility">Price summary by service category (medians; professional vs facility)</h2>
<p>Median, p10, p90 of the comparable dollar price by service category and provider type — the category-level orientation before the service-level deep dives in 600.</p>
<pre id="stlog-10" class="stlog"><samp><span class="stinp">. di as txt "Median, p10, p90 of the comparable dollar price, by service category and provider type:"</span>
Median, p10, p90 of the comparable dollar price, by service category and provider type:
<span class="stinp">. list service_category provider_type median p10 p90 n, noobs sep(0) abbreviate(24)</span>
+-------------------------------------------------------------------------+
| <span class="stres"> service_category provider_type median p10 p90 n </span>|
|-------------------------------------------------------------------------|
| <span class="stres"> Cardiology institutional 75 11 419 6985 </span>|
| <span class="stres"> Cardiology professional 67 12 241 39462 </span>|
| <span class="stres"> E&M outpatient institutional 106 26 405 25310 </span>|
| <span class="stres"> E&M outpatient professional 82 35 164 304161 </span>|
| <span class="stres"> Emergency institutional 384 105 2,580 17632 </span>|
| <span class="stres"> Emergency professional 65 10 155 81226 </span>|
| <span class="stres"> Imaging institutional 256 69 1,146 35027 </span>|
| <span class="stres"> Imaging professional 85 27 270 260218 </span>|
| <span class="stres"> Inpatient DRG institutional 0 0 9,750 137422 </span>|
| <span class="stres"> Inpatient surgery institutional 6,219 1,628 22,572 33428 </span>|
| <span class="stres"> Inpatient surgery professional 1,058 430 2,036 97848 </span>|
| <span class="stres"> Lab institutional 13 4 60 38729 </span>|
| <span class="stres"> Lab professional 6 4 29 70246 </span>|
| <span class="stres"> Maternity institutional 971 93 5,077 23687 </span>|
| <span class="stres"> Maternity professional 354 37 1,926 182952 </span>|
| <span class="stres"> Maternity DRG institutional 0 0 6,174 41044 </span>|
| <span class="stres">Outpatient procedure institutional 805 0 2,899 50626 </span>|
| <span class="stres">Outpatient procedure professional 215 44 567 264265 </span>|
| <span class="stres"> Preventive institutional 488 134 1,558 14265 </span>|
| <span class="stres"> Preventive professional 108 69 276 177677 </span>|
+-------------------------------------------------------------------------+
</samp></pre>
<h2 id="explore-the-data-interactively-price-by-care-setting-and-code-system-sparkta">Explore the data interactively: price by care setting and code system (sparkta)</h2>
<p>The static tables above answer fixed questions; this widget lets you ask your own. Built with the team's <code>sparkta</code>, it charts the median comparable price by <b>care setting</b> (inpatient vs outpatient) — a dimension the tables do not split — and re-draws live as you filter by <b>code system</b> (CPT / HCPCS / MS-DRG), provider type, and service category. <b>Why run it:</b> a fast way to PROFILE whether the data behaves sensibly across structural dimensions we filter on but rarely chart — inpatient prices should dwarf outpatient, and MS-DRG (whole-stay) prices should dwarf CPT line items — so an analyst can sanity-check the extract and spot a slice worth a closer look. The collapsible stats panel (N, median, spread) updates with every filter. (Representative ~40k-row sample of the comparable prices so the page stays light; the full data is in <code>02_cleaned/</code>.)</p>
<p><iframe src="explore_care_setting.html" width="100%" height="640" style="border:1px solid #ddd;border-radius:6px" title="Interactive chart: price by care setting and code system"></iframe></p>
<h2 id="multi-snapshot-readiness-time-trends">Multi-snapshot readiness (time trends)</h2>
<p>These activate automatically once >=2 monthly pulls are stacked (append future runs, then re-run). With a single snapshot they are intentionally skipped.</p>
<h2 id="provider-geography-coverage-public-health-region">Provider geography coverage (Public Health Region)</h2>
<p>Each price is tagged with the Texas Public Health Region of its provider group (the modal region of the group Texas NPIs — see 600 section 6). A blank region means the provider is registered out of state, the ZIP did not map, or the group is TIN-only with no resolvable NPI.</p>
<pre id="stlog-11" class="stlog"><samp><span class="stinp">. tab has_region</span>
has_region | Freq. Percent Cum.
------------+-----------------------------------
0 |<span class="stres"> 15,186 0.72 0.72</span>
1 |<span class="stres"> 2,082,378 99.28 100.00</span>
------------+-----------------------------------
Total |<span class="stres"> 2,097,564 100.00</span>
<span class="stinp">. tab region if region!=""</span>
region | Freq. Percent Cum.
------------+-----------------------------------
1 |<span class="stres"> 179,063 8.60 8.60</span>
11 |<span class="stres"> 142,595 6.85 15.45</span>
2/3 |<span class="stres"> 500,879 24.05 39.50</span>
4/5N |<span class="stres"> 255,055 12.25 51.75</span>
6/5S |<span class="stres"> 290,795 13.96 65.71</span>
7 |<span class="stres"> 293,113 14.08 79.79</span>
8 |<span class="stres"> 253,967 12.20 91.98</span>
9/10 |<span class="stres"> 166,911 8.02 100.00</span>
------------+-----------------------------------
Total |<span class="stres"> 2,082,378 100.00</span>
</samp></pre>
<h2 id="what-this-dataset-cannot-profile-be-explicit">What this dataset CANNOT profile (be explicit)</h2>
<p>Two former gaps are now CLOSED in this run — percent of Medicare (600, section 5) and Public Health Region geography (600, section 6). The following remain not possible with the current data:</p>
<ul class="wd-list-dashed">
<li>Cross-payer comparison — needs additional insurers (UnitedHealthcare, Aetna, Cigna) run through the same pipeline (one config file each).</li>
<li>Volume / spending weighting and market concentration (HHI) — the files carry no utilization, so spending is not recoverable from negotiated rates alone (600 lists external-data options).</li>
<li>Texas Senate / House legislative district — needs point geocoding, because ZIP codes cross district lines.</li>
<li>A Clinical Lab Fee Schedule percent-of-Medicare for lab codes — the CLFS file URL still needs confirming, so the 8 lab codes currently lack a Medicare benchmark.</li>
</ul>
</body>
</html>