@mailwoman/registry 5.5.0 → 5.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/out/ingest.d.ts +9 -12
  2. package/out/ingest.d.ts.map +1 -1
  3. package/out/ingest.js +36 -52
  4. package/out/ingest.js.map +1 -1
  5. package/out/learned-scorer.d.ts +1 -1
  6. package/out/learned-scorer.d.ts.map +1 -1
  7. package/out/learned-scorer.js +5 -3
  8. package/out/learned-scorer.js.map +1 -1
  9. package/out/map-html.d.ts.map +1 -1
  10. package/out/map-html.js +10 -5
  11. package/out/map-html.js.map +1 -1
  12. package/out/models/crosssource-gbt-en-us.d.ts +1 -1
  13. package/out/models/crosssource-gbt-en-us.js +1 -1
  14. package/out/models/dedup-gbt-en-us.d.ts +1 -1
  15. package/out/models/dedup-gbt-en-us.js +1 -1
  16. package/out/models/org-crosssource-gbt-en-us.d.ts +1 -1
  17. package/out/models/org-crosssource-gbt-en-us.js +1 -1
  18. package/out/reconcile.d.ts +1 -1
  19. package/out/reconcile.d.ts.map +1 -1
  20. package/out/reconcile.js +5 -3
  21. package/out/reconcile.js.map +1 -1
  22. package/out/resolve.d.ts.map +1 -1
  23. package/out/resolve.js +6 -3
  24. package/out/resolve.js.map +1 -1
  25. package/out/tools/dedup-ceiling.d.ts +33 -0
  26. package/out/tools/dedup-ceiling.d.ts.map +1 -0
  27. package/out/tools/dedup-ceiling.js +286 -0
  28. package/out/tools/dedup-ceiling.js.map +1 -0
  29. package/out/tools/gold-set-sample.d.ts +23 -0
  30. package/out/tools/gold-set-sample.d.ts.map +1 -0
  31. package/out/tools/gold-set-sample.js +191 -0
  32. package/out/tools/gold-set-sample.js.map +1 -0
  33. package/out/tools/matcher-scale.d.ts +19 -0
  34. package/out/tools/matcher-scale.d.ts.map +1 -0
  35. package/out/tools/matcher-scale.js +148 -0
  36. package/out/tools/matcher-scale.js.map +1 -0
  37. package/out/tools/txhhsc-to-oarow.d.ts +18 -0
  38. package/out/tools/txhhsc-to-oarow.d.ts.map +1 -0
  39. package/out/tools/txhhsc-to-oarow.js +72 -0
  40. package/out/tools/txhhsc-to-oarow.js.map +1 -0
  41. package/out/tools/viz/cross-dataset-map.d.ts +30 -0
  42. package/out/tools/viz/cross-dataset-map.d.ts.map +1 -0
  43. package/out/tools/viz/cross-dataset-map.js +97 -0
  44. package/out/tools/viz/cross-dataset-map.js.map +1 -0
  45. package/out/tools/viz/geocode-first-surface.d.ts +40 -0
  46. package/out/tools/viz/geocode-first-surface.d.ts.map +1 -0
  47. package/out/tools/viz/geocode-first-surface.js +249 -0
  48. package/out/tools/viz/geocode-first-surface.js.map +1 -0
  49. package/out/tools/viz/render-map.d.ts +23 -0
  50. package/out/tools/viz/render-map.d.ts.map +1 -0
  51. package/out/tools/viz/render-map.js +47 -0
  52. package/out/tools/viz/render-map.js.map +1 -0
  53. package/out/tools/viz/render.d.ts +17 -0
  54. package/out/tools/viz/render.d.ts.map +1 -0
  55. package/out/tools/viz/render.js +57 -0
  56. package/out/tools/viz/render.js.map +1 -0
  57. package/out/tools/viz/source-provenance-map.d.ts +30 -0
  58. package/out/tools/viz/source-provenance-map.d.ts.map +1 -0
  59. package/out/tools/viz/source-provenance-map.js +106 -0
  60. package/out/tools/viz/source-provenance-map.js.map +1 -0
  61. package/out/tools/viz/yardstick-figure.d.ts +27 -0
  62. package/out/tools/viz/yardstick-figure.d.ts.map +1 -0
  63. package/out/tools/viz/yardstick-figure.js +139 -0
  64. package/out/tools/viz/yardstick-figure.js.map +1 -0
  65. package/package.json +9 -7
@@ -0,0 +1,33 @@
1
+ /**
2
+ * @copyright Sister Software
3
+ * @license AGPL-3.0
4
+ * @author Teffen Ellis, et al.
5
+ *
6
+ * #625 ceiling measurement — "how good is good enough" for dedup, derived from the data instead of
7
+ * asserted as a round number (DeepSeek consult, issue #625). The residual dedup error is
8
+ * OVER-MERGE: distinct co-located providers (different NPIs at one clinic/billing address) fused
9
+ * because a shared address outvotes a disagreeing name. The irreducible part of that — the
10
+ * **Bayes error** — is the set of co-located distinct-NPI pairs whose NAMES are also ~identical:
11
+ * no name/org feature can separate them, so any address-aware matcher over-merges them. That
12
+ * floor caps PRECISION.
13
+ *
14
+ * This measures it directly and label-free, using NPI as the distinctness truth (different NPI =
15
+ * different provider). Geocode-free on purpose: the question is the DATA's separability, not the
16
+ * geocoder — so we can run at large N (tens of thousands of TX providers) in seconds. We key
17
+ * "same address" with the matcher's own `addressFrequencyKey`, and "same name" with a normalized
18
+ * token Jaccard over the legal business name.
19
+ *
20
+ * Reports, over co-located distinct-NPI pairs (the over-merge population):
21
+ *
22
+ * - Co-location prevalence (addresses hosting ≥2 distinct NPIs; providers at shared addresses)
23
+ * - The org-name-similarity distribution of those pairs
24
+ * - The COLLISION rate: fraction with org-sim ≥ τ (irreducible over-merge) — the precision floor
25
+ * - Whether a shared phone would help (it doesn't: institutional switchboards) — among collisions,
26
+ * how often the two distinct NPIs ALSO share a phone (so phone over-links, can't separate)
27
+ * …and derives a precision/F1 CEILING under stated assumptions, with the caveats called out.
28
+ *
29
+ * Run: node --experimental-strip-types registry/tools/dedup-ceiling.ts\
30
+ * [--cap 50000] [--state TX] [--sources <dir>] [--tau 0.7] [--out-md <md>]
31
+ */
32
+ export {};
33
+ //# sourceMappingURL=dedup-ceiling.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dedup-ceiling.d.ts","sourceRoot":"","sources":["../../tools/dedup-ceiling.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG"}
@@ -0,0 +1,286 @@
1
+ /**
2
+ * @copyright Sister Software
3
+ * @license AGPL-3.0
4
+ * @author Teffen Ellis, et al.
5
+ *
6
+ * #625 ceiling measurement — "how good is good enough" for dedup, derived from the data instead of
7
+ * asserted as a round number (DeepSeek consult, issue #625). The residual dedup error is
8
+ * OVER-MERGE: distinct co-located providers (different NPIs at one clinic/billing address) fused
9
+ * because a shared address outvotes a disagreeing name. The irreducible part of that — the
10
+ * **Bayes error** — is the set of co-located distinct-NPI pairs whose NAMES are also ~identical:
11
+ * no name/org feature can separate them, so any address-aware matcher over-merges them. That
12
+ * floor caps PRECISION.
13
+ *
14
+ * This measures it directly and label-free, using NPI as the distinctness truth (different NPI =
15
+ * different provider). Geocode-free on purpose: the question is the DATA's separability, not the
16
+ * geocoder — so we can run at large N (tens of thousands of TX providers) in seconds. We key
17
+ * "same address" with the matcher's own `addressFrequencyKey`, and "same name" with a normalized
18
+ * token Jaccard over the legal business name.
19
+ *
20
+ * Reports, over co-located distinct-NPI pairs (the over-merge population):
21
+ *
22
+ * - Co-location prevalence (addresses hosting ≥2 distinct NPIs; providers at shared addresses)
23
+ * - The org-name-similarity distribution of those pairs
24
+ * - The COLLISION rate: fraction with org-sim ≥ τ (irreducible over-merge) — the precision floor
25
+ * - Whether a shared phone would help (it doesn't: institutional switchboards) — among collisions,
26
+ * how often the two distinct NPIs ALSO share a phone (so phone over-links, can't separate)
27
+ * …and derives a precision/F1 CEILING under stated assumptions, with the caveats called out.
28
+ *
29
+ * Run: node --experimental-strip-types registry/tools/dedup-ceiling.ts\
30
+ * [--cap 50000] [--state TX] [--sources <dir>] [--tau 0.7] [--out-md <md>]
31
+ */
32
+ import { writeFileSync } from "node:fs";
33
+ import { parseArgs } from "node:util";
34
+ import { dataRootPath } from "@mailwoman/core/utils";
35
+ import { addressFrequencyKey, streamRows } from "@mailwoman/registry";
36
+ // Loose scan parity with the retired local argv helpers: unknown flags tolerated.
37
+ const { values: rawValues } = parseArgs({
38
+ options: {
39
+ cap: { type: "string" },
40
+ "out-md": { type: "string" },
41
+ sources: { type: "string" },
42
+ state: { type: "string" },
43
+ tau: { type: "string" },
44
+ },
45
+ strict: false,
46
+ allowPositionals: true,
47
+ });
48
+ // Typed view: strict:false loosens TS inference, but declared options always parse to their schema type.
49
+ const values = rawValues;
50
+ const SOURCES = values["sources"] || dataRootPath("record-matcher", "sources");
51
+ const CAP = Number(values["cap"] || "50000");
52
+ const STATE = (values["state"] || "TX").toUpperCase();
53
+ const TAU = Number(values["tau"] || "0.7");
54
+ const OUT_MD = values["out-md"] || "";
55
+ const REGISTRY = `${SOURCES}/nppes_npi-registry_20260607.tsv`;
56
+ const norm = (s) => (s ?? "").trim();
57
+ // Strip only corporate-form tokens + articles — KEEP domain words (health, medical, center…), which
58
+ // carry the distinguishing signal between two co-located providers.
59
+ const STOP = new Set([
60
+ "llc",
61
+ "inc",
62
+ "incorporated",
63
+ "corp",
64
+ "corporation",
65
+ "co",
66
+ "ltd",
67
+ "pllc",
68
+ "pc",
69
+ "pa",
70
+ "lp",
71
+ "llp",
72
+ "the",
73
+ "of",
74
+ "and",
75
+ ]);
76
+ function orgTokens(s) {
77
+ return new Set(s
78
+ .toLowerCase()
79
+ .replace(/[^a-z0-9 ]/g, " ")
80
+ .split(/\s+/)
81
+ .filter((t) => t && !STOP.has(t)));
82
+ }
83
+ function jaccard(a, b) {
84
+ if (a.size === 0 || b.size === 0)
85
+ return 0;
86
+ let inter = 0;
87
+ for (const t of a)
88
+ if (b.has(t)) {
89
+ inter++;
90
+ }
91
+ return inter / (a.size + b.size - inter);
92
+ }
93
+ const normPhone = (p) => {
94
+ const d = (p ?? "").replace(/\D/g, "");
95
+ return d.length >= 10 ? d.slice(-10) : "";
96
+ };
97
+ async function main() {
98
+ // --- Stream TX type-2 (org) providers; one primary record per NPI at its practice address. ---
99
+ console.error(`[A] streaming ${STATE} org providers (cap ${CAP})…`);
100
+ const byAddr = new Map();
101
+ let kept = 0;
102
+ let scanned = 0;
103
+ for await (const r of streamRows(REGISTRY)) {
104
+ scanned++;
105
+ if (norm(r["Entity Type Code"]) !== "2")
106
+ continue;
107
+ if (norm(r["Provider Business Practice Location Address State Name"]).toUpperCase() !== STATE)
108
+ continue;
109
+ const org = norm(r["Provider Organization Name (Legal Business Name)"]);
110
+ if (!org)
111
+ continue;
112
+ const line1 = norm(r["Provider First Line Business Practice Location Address"]);
113
+ const city = norm(r["Provider Business Practice Location Address City Name"]);
114
+ const zip = norm(r["Provider Business Practice Location Address Postal Code"]);
115
+ if (!line1)
116
+ continue;
117
+ const addrKey = addressFrequencyKey(`${line1}, ${city}, ${STATE} ${zip}`);
118
+ if (!addrKey)
119
+ continue;
120
+ const npi = norm(r["NPI"]);
121
+ const auth = `${norm(r["Authorized Official Last Name"])} ${norm(r["Authorized Official First Name"])}`
122
+ .toLowerCase()
123
+ .trim();
124
+ const p = {
125
+ npi,
126
+ tokens: orgTokens(org),
127
+ phone: normPhone(r["Provider Business Practice Location Address Telephone Number"]),
128
+ auth: auth === "" ? "" : auth,
129
+ taxonomy: norm(r["Healthcare Provider Taxonomy Code_1"]),
130
+ };
131
+ if (!byAddr.has(addrKey)) {
132
+ byAddr.set(addrKey, []);
133
+ }
134
+ byAddr.get(addrKey).push(p);
135
+ kept++;
136
+ if (kept >= CAP)
137
+ break;
138
+ }
139
+ console.error(` scanned ${scanned} rows → ${kept} ${STATE} org providers at ${byAddr.size} distinct addresses`);
140
+ // --- Over co-located distinct-NPI pairs: the org-similarity distribution + collision rate. ---
141
+ let sharedAddresses = 0;
142
+ let providersAtSharedAddr = 0;
143
+ let pairs = 0;
144
+ let collide = 0; // org-sim ≥ τ — name-indistinguishable co-located distinct NPIs
145
+ let mid = 0; // τ > sim ≥ 0.3 — partially separable
146
+ let separable = 0; // sim < 0.3 — clearly different names
147
+ let collideSharePhone = 0; // of collisions, also share a phone (phone can't separate either)
148
+ // Of the collisions, split NPI-over-segmentation (one org, many NPIs — merge is CORRECT) from
149
+ // genuinely-distinct co-located providers (the TRUE irreducible over-merge):
150
+ let collideSameAuth = 0; // share an authorized official ⇒ one org, multiple NPIs ⇒ correct to merge
151
+ let collideDistinct = 0; // different official AND different specialty ⇒ genuinely different providers
152
+ const PAIR_BUDGET = 5_000_000;
153
+ // guard against a pathological mega-address (PO-box farms)
154
+ for (const provs of byAddr.values()) {
155
+ // distinct NPIs at this address
156
+ const distinct = new Map();
157
+ for (const p of provs)
158
+ if (!distinct.has(p.npi)) {
159
+ distinct.set(p.npi, p);
160
+ }
161
+ const list = [...distinct.values()];
162
+ if (list.length < 2)
163
+ continue;
164
+ sharedAddresses++;
165
+ providersAtSharedAddr += list.length;
166
+ for (let i = 0; i < list.length; i++) {
167
+ for (let j = i + 1; j < list.length; j++) {
168
+ if (pairs >= PAIR_BUDGET)
169
+ break;
170
+ pairs++;
171
+ const a = list[i];
172
+ const b = list[j];
173
+ const sim = jaccard(a.tokens, b.tokens);
174
+ if (sim >= TAU) {
175
+ collide++;
176
+ if (a.phone && a.phone === b.phone) {
177
+ collideSharePhone++;
178
+ }
179
+ const sameAuth = a.auth !== "" && a.auth === b.auth;
180
+ const sameTax = a.taxonomy !== "" && a.taxonomy === b.taxonomy;
181
+ if (sameAuth) {
182
+ collideSameAuth++;
183
+ }
184
+ else if (!sameTax) {
185
+ collideDistinct++;
186
+ }
187
+ }
188
+ else if (sim >= 0.3) {
189
+ mid++;
190
+ }
191
+ else {
192
+ separable++;
193
+ }
194
+ }
195
+ }
196
+ }
197
+ // --- Derive the precision ceiling. An address-aware matcher must, on co-located distinct-NPI
198
+ // pairs, either merge (wrong) or hold them apart using name/org. It CAN separate the `separable`
199
+ // (and most `mid`) pairs but NOT the `collide` ones. So the irreducible false-merge rate among
200
+ // co-located distinct pairs is collide/pairs; an oracle's precision on the co-located decision is
201
+ // bounded by how many merges it makes that are correct. We report the collision rate directly and
202
+ // a precision-ceiling BAND (optimistic: only `collide` over-merge; conservative: `collide` + half
203
+ // of `mid`). Recall is NOT the binding constraint here (NPPES same-NPI records almost always share
204
+ // either address or org), so the F1 ceiling tracks the precision ceiling. ---
205
+ const pct = (n, d) => (d > 0 ? `${((100 * n) / d).toFixed(1)}%` : "—");
206
+ const collisionRate = pairs > 0 ? collide / pairs : 0;
207
+ const lines = [];
208
+ lines.push(`# #625 — dedup ceiling: the irreducible over-merge of co-located providers`);
209
+ lines.push("");
210
+ lines.push(`_Generated by \`registry/tools/dedup-ceiling.ts\`. ${STATE}, ${kept} type-2 (org) providers ` +
211
+ `(cap ${CAP}), geocode-free: "same address" = the matcher's \`addressFrequencyKey\`; "same name" = ` +
212
+ `normalized token Jaccard over the legal business name (corporate suffixes + articles stripped, domain ` +
213
+ `words kept). NPI is the distinctness truth (different NPI = different provider). τ = ${TAU}._`);
214
+ lines.push("");
215
+ lines.push(`## Co-location prevalence`);
216
+ lines.push("");
217
+ lines.push(`- **${sharedAddresses}** addresses host ≥2 distinct NPIs (${pct(sharedAddresses, byAddr.size)} of ${byAddr.size} addresses).`);
218
+ lines.push(`- **${providersAtSharedAddr}** providers sit at a shared address (${pct(providersAtSharedAddr, kept)} of ${kept}).`);
219
+ lines.push(`- **${pairs}** co-located distinct-NPI pairs (the over-merge population)${pairs >= PAIR_BUDGET ? ` — capped at the ${PAIR_BUDGET} pair budget` : ""}.`);
220
+ lines.push("");
221
+ lines.push(`## Name separability of co-located distinct providers`);
222
+ lines.push("");
223
+ lines.push(`| org-name Jaccard | pairs | share | meaning |`);
224
+ lines.push(`|---|---:|---:|---|`);
225
+ lines.push(`| ≥ ${TAU} (collision) | ${collide} | ${pct(collide, pairs)} | ~identical names → **irreducible over-merge** |`);
226
+ lines.push(`| ${0.3}–${TAU} | ${mid} | ${pct(mid, pairs)} | partial — separable with a good model |`);
227
+ lines.push(`| < 0.3 | ${separable} | ${pct(separable, pairs)} | clearly different names → separable |`);
228
+ lines.push("");
229
+ lines.push(`Of the ${collide} collision pairs, **${collideSharePhone}** (${pct(collideSharePhone, collide)}) also share a phone — ` +
230
+ `so phone (a shared institutional switchboard) does NOT separate them either; if anything it over-links. This is ` +
231
+ `why the benchmark found phone an unreliable secondary identifier.`);
232
+ lines.push("");
233
+ lines.push(`## Splitting the collisions: NPI over-segmentation vs genuinely distinct providers`);
234
+ lines.push("");
235
+ lines.push(`A collision (same address, ~same name, often same phone) with DIFFERENT NPIs is usually one organization holding ` +
236
+ `multiple NPIs (subparts / departments) — where merging is **correct** and NPI-as-truth is **over-segmenting**, ` +
237
+ `not a model error. NPPES's own fields separate the two cases:`);
238
+ lines.push("");
239
+ lines.push(`| collision pair is… | pairs | share of collisions | merging it is… |`);
240
+ lines.push(`|---|---:|---:|---|`);
241
+ lines.push(`| same authorized official | ${collideSameAuth} | ${pct(collideSameAuth, collide)} | **correct** — one org, many NPIs (NPI over-segments) |`);
242
+ lines.push(`| different official AND different specialty | ${collideDistinct} | ${pct(collideDistinct, collide)} | a **genuine** distinct co-located provider — true over-merge |`);
243
+ lines.push(`| (remainder: different official, same specialty) | ${collide - collideSameAuth - collideDistinct} | ${pct(collide - collideSameAuth - collideDistinct, collide)} | ambiguous — needs adjudication |`);
244
+ lines.push("");
245
+ lines.push(`## The ceiling`);
246
+ lines.push("");
247
+ lines.push(`The raw collision rate is **${pct(collide, pairs)}** of co-located distinct-NPI pairs — but only **${pct(collideDistinct, pairs)}** ` +
248
+ `of co-located pairs are *genuinely* distinct providers indistinguishable by name (different official + specialty). ` +
249
+ `Most collisions are **NPI over-segmentation** (${pct(collideSameAuth, collide)} share an authorized official), where ` +
250
+ `a merge is correct and NPI-truth penalizes it wrongly.`);
251
+ lines.push("");
252
+ lines.push(`**This is the answer to "how good is good enough," and it has two parts:**`);
253
+ lines.push(`1. Measured against **NPI-as-truth**, F1 is capped well below 0.85 — ~${pct(collide, pairs)} of co-located pairs are ` +
254
+ `unseparable, and NPI-truth scores most of them as errors even though merging is correct. The round **0.85 target ` +
255
+ `is unreachable under this yardstick and should be dropped.**`);
256
+ lines.push(`2. The *real* irreducible over-merge — genuinely distinct co-located providers with identical names — is only ` +
257
+ `~**${pct(collideDistinct, pairs)}** of the co-located population. Against an **entity-level truth** (subpart-aware), ` +
258
+ `the achievable ceiling is much higher. But that ceiling can only be MEASURED with an entity-level / adjudicated ` +
259
+ `gold set — NPI-truth alone can't tell a correct subpart-merge from a true over-merge. **This is why the gold set ` +
260
+ `(the "second comparison") is necessary, not optional.**`);
261
+ lines.push("");
262
+ lines.push(`Recommendation: drop 0.85. Set the bar against a subpart-aware / adjudicated entity truth, report NPI-level AND ` +
263
+ `entity-level side by side, and target "separate the ~${pct(collideDistinct, pairs)} genuinely-distinct co-located ` +
264
+ `pairs the GBT can still reach" rather than a round F1. The GBT's corroboration-feature work (#625 revised) ` +
265
+ `attacks exactly that separable slice.`);
266
+ lines.push("");
267
+ lines.push(`## Caveats`);
268
+ lines.push("");
269
+ lines.push(`- **Geocode-free + exact address key.** "Co-located" here is an exact normalized-address match; geocoding would ` +
270
+ `add near-but-not-exact neighbors (suite splits, slightly different formatting), which can only RAISE the ` +
271
+ `collision count. So this is a LOWER bound on the irreducible over-merge.`);
272
+ lines.push(`- **Recall side under-measured.** NPPES same-NPI records almost always share an address or the org name, so the ` +
273
+ `recall floor looks ~1.0 here; real-world feeds with distant + name-drifted same-entity records would lower it. ` +
274
+ `The F1 ceiling reported tracks the PRECISION constraint, which is the binding one for the over-merge problem.`);
275
+ lines.push(`- **Token-Jaccard ≠ the model's name comparison.** A proxy for separability; the GBT uses the FS agreement ` +
276
+ `levels. The collision SET (sim ≥ τ + shared phone) is robust to the exact similarity metric.`);
277
+ lines.push("");
278
+ const md = lines.join("\n");
279
+ console.log(md);
280
+ if (OUT_MD) {
281
+ writeFileSync(OUT_MD, md);
282
+ console.error(`[written] ${OUT_MD}`);
283
+ }
284
+ }
285
+ await main();
286
+ //# sourceMappingURL=dedup-ceiling.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dedup-ceiling.js","sourceRoot":"","sources":["../../tools/dedup-ceiling.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AAErC,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AACpD,OAAO,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,qBAAqB,CA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0 +1,23 @@
1
+ /**
2
+ * @copyright Sister Software
3
+ * @license AGPL-3.0
4
+ * @author Teffen Ellis, et al.
5
+ *
6
+ * Gold-set P3 (#625) — sample the HARD slice for adjudication. The programmatic entity truth
7
+ * (`nppes-dedup-benchmark.ts`) collapses only NPPES-FLAGGED subparts (Is-Subpart + parent
8
+ * LBN/TIN); it can't settle the genuinely-ambiguous co-located collisions: distinct NPIs at one
9
+ * address with near-identical names that are NOT flagged subparts of the same parent. Those are
10
+ * where NPI-truth and any programmatic rule disagree — exactly the pairs a frozen adjudicated
11
+ * gold set must cover.
12
+ *
13
+ * This finds them (over the full TX registry, geocode-free — same machinery as `dedup-ceiling.ts`)
14
+ * and writes each as a JSONL row carrying BOTH records' fields (org name, address, authorized
15
+ * official, taxonomy, subpart/parent flags) plus the programmatic verdict, so an adjudicator
16
+ * (human or LLM-as-judge, flagged as such) can label "same real-world entity? yes/no" and we can
17
+ * MEASURE how often the programmatic truth matches judgment.
18
+ *
19
+ * Run: node --experimental-strip-types registry/tools/gold-set-sample.ts\
20
+ * [--cap 200000] [--state TX] [--tau 0.7] [--n 300] [--out-jsonl <path>]
21
+ */
22
+ export {};
23
+ //# sourceMappingURL=gold-set-sample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gold-set-sample.d.ts","sourceRoot":"","sources":["../../tools/gold-set-sample.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG"}
@@ -0,0 +1,191 @@
1
+ /**
2
+ * @copyright Sister Software
3
+ * @license AGPL-3.0
4
+ * @author Teffen Ellis, et al.
5
+ *
6
+ * Gold-set P3 (#625) — sample the HARD slice for adjudication. The programmatic entity truth
7
+ * (`nppes-dedup-benchmark.ts`) collapses only NPPES-FLAGGED subparts (Is-Subpart + parent
8
+ * LBN/TIN); it can't settle the genuinely-ambiguous co-located collisions: distinct NPIs at one
9
+ * address with near-identical names that are NOT flagged subparts of the same parent. Those are
10
+ * where NPI-truth and any programmatic rule disagree — exactly the pairs a frozen adjudicated
11
+ * gold set must cover.
12
+ *
13
+ * This finds them (over the full TX registry, geocode-free — same machinery as `dedup-ceiling.ts`)
14
+ * and writes each as a JSONL row carrying BOTH records' fields (org name, address, authorized
15
+ * official, taxonomy, subpart/parent flags) plus the programmatic verdict, so an adjudicator
16
+ * (human or LLM-as-judge, flagged as such) can label "same real-world entity? yes/no" and we can
17
+ * MEASURE how often the programmatic truth matches judgment.
18
+ *
19
+ * Run: node --experimental-strip-types registry/tools/gold-set-sample.ts\
20
+ * [--cap 200000] [--state TX] [--tau 0.7] [--n 300] [--out-jsonl <path>]
21
+ */
22
+ import { writeFileSync } from "node:fs";
23
+ import { parseArgs } from "node:util";
24
+ import { dataRootPath } from "@mailwoman/core/utils";
25
+ import { addressFrequencyKey, streamRows } from "@mailwoman/registry";
26
+ // Loose scan parity with the retired local argv helpers: unknown flags tolerated.
27
+ const { values: rawValues } = parseArgs({
28
+ options: {
29
+ cap: { type: "string" },
30
+ n: { type: "string" },
31
+ "out-jsonl": { type: "string" },
32
+ sources: { type: "string" },
33
+ state: { type: "string" },
34
+ tau: { type: "string" },
35
+ },
36
+ strict: false,
37
+ allowPositionals: true,
38
+ });
39
+ // Typed view: strict:false loosens TS inference, but declared options always parse to their schema type.
40
+ const values = rawValues;
41
+ const SOURCES = values["sources"] || dataRootPath("record-matcher", "sources");
42
+ const CAP = Number(values["cap"] || "200000");
43
+ const STATE = (values["state"] || "TX").toUpperCase();
44
+ const TAU = Number(values["tau"] || "0.7");
45
+ const N = Number(values["n"] || "300");
46
+ const OUT = values["out-jsonl"] || "";
47
+ const REGISTRY = `${SOURCES}/nppes_npi-registry_20260607.tsv`;
48
+ const norm = (s) => (s ?? "").trim();
49
+ const STOP = new Set([
50
+ "llc",
51
+ "inc",
52
+ "incorporated",
53
+ "corp",
54
+ "corporation",
55
+ "co",
56
+ "ltd",
57
+ "pllc",
58
+ "pc",
59
+ "pa",
60
+ "lp",
61
+ "llp",
62
+ "the",
63
+ "of",
64
+ "and",
65
+ ]);
66
+ function orgTokens(s) {
67
+ return new Set(s
68
+ .toLowerCase()
69
+ .replace(/[^a-z0-9 ]/g, " ")
70
+ .split(/\s+/)
71
+ .filter((t) => t && !STOP.has(t)));
72
+ }
73
+ function jaccard(a, b) {
74
+ if (a.size === 0 || b.size === 0)
75
+ return 0;
76
+ let inter = 0;
77
+ for (const t of a)
78
+ if (b.has(t)) {
79
+ inter++;
80
+ }
81
+ return inter / (a.size + b.size - inter);
82
+ }
83
+ const C = {
84
+ npi: "NPI",
85
+ entityType: "Entity Type Code",
86
+ org: "Provider Organization Name (Legal Business Name)",
87
+ pAddr: "Provider First Line Business Practice Location Address",
88
+ pCity: "Provider Business Practice Location Address City Name",
89
+ pState: "Provider Business Practice Location Address State Name",
90
+ pZip: "Provider Business Practice Location Address Postal Code",
91
+ authLast: "Authorized Official Last Name",
92
+ authFirst: "Authorized Official First Name",
93
+ taxonomy: "Healthcare Provider Taxonomy Code_1",
94
+ isSubpart: "Is Organization Subpart",
95
+ parentLBN: "Parent Organization LBN",
96
+ parentTIN: "Parent Organization TIN",
97
+ };
98
+ async function main() {
99
+ console.error(`[A] streaming ${STATE} org providers (cap ${CAP})…`);
100
+ const byAddr = new Map();
101
+ let kept = 0;
102
+ for await (const r of streamRows(REGISTRY)) {
103
+ if (norm(r[C.entityType]) !== "2")
104
+ continue;
105
+ if (norm(r[C.pState]).toUpperCase() !== STATE)
106
+ continue;
107
+ const org = norm(r[C.org]);
108
+ const line1 = norm(r[C.pAddr]);
109
+ if (!org || !line1)
110
+ continue;
111
+ const address = [line1, norm(r[C.pCity]), STATE, norm(r[C.pZip])].filter(Boolean).join(", ");
112
+ const addrKey = addressFrequencyKey(address);
113
+ if (!addrKey)
114
+ continue;
115
+ const p = {
116
+ npi: norm(r[C.npi]),
117
+ org,
118
+ tokens: orgTokens(org),
119
+ address,
120
+ auth: `${norm(r[C.authFirst])} ${norm(r[C.authLast])}`.toLowerCase().trim(),
121
+ taxonomy: norm(r[C.taxonomy]),
122
+ subpart: norm(r[C.isSubpart]).toUpperCase() === "Y",
123
+ parent: `${norm(r[C.parentLBN])}|${norm(r[C.parentTIN])}`.toLowerCase(),
124
+ };
125
+ if (!byAddr.has(addrKey)) {
126
+ byAddr.set(addrKey, []);
127
+ }
128
+ byAddr.get(addrKey).push(p);
129
+ kept++;
130
+ if (kept >= CAP)
131
+ break;
132
+ }
133
+ console.error(` ${kept} providers at ${byAddr.size} addresses`);
134
+ const hard = [];
135
+ for (const provs of byAddr.values()) {
136
+ const distinct = new Map();
137
+ for (const p of provs)
138
+ if (!distinct.has(p.npi)) {
139
+ distinct.set(p.npi, p);
140
+ }
141
+ const list = [...distinct.values()];
142
+ if (list.length < 2)
143
+ continue;
144
+ for (let i = 0; i < list.length; i++) {
145
+ for (let j = i + 1; j < list.length; j++) {
146
+ const a = list[i];
147
+ const b = list[j];
148
+ const sim = jaccard(a.tokens, b.tokens);
149
+ if (sim < TAU)
150
+ continue;
151
+ const sameParent = a.subpart && b.subpart && a.parent === b.parent && a.parent !== "|";
152
+ if (sameParent)
153
+ continue; // programmatic truth already collapses these — not the hard slice
154
+ const sameAuth = a.auth !== "" && a.auth === b.auth;
155
+ const sameTax = a.taxonomy !== "" && a.taxonomy === b.taxonomy;
156
+ hard.push({
157
+ npiA: a.npi,
158
+ npiB: b.npi,
159
+ orgA: a.org,
160
+ orgB: b.org,
161
+ address: a.address,
162
+ nameJaccard: Number(sim.toFixed(3)),
163
+ sameAuthorizedOfficial: sameAuth,
164
+ sameTaxonomy: sameTax,
165
+ bothSubpartSameParent: false,
166
+ // Programmatic heuristic verdict (what an entity-level rule WOULD say, beyond the flagged
167
+ // subparts): same authorized official ⇒ likely one org; different official + different
168
+ // specialty ⇒ likely distinct. The whole point is to ADJUDICATE whether this is right.
169
+ programmaticVerdict: sameAuth ? "same-entity" : "distinct",
170
+ adjudication: null,
171
+ });
172
+ }
173
+ }
174
+ }
175
+ console.error(` ${hard.length} hard co-located name-collision pairs (non-flagged-subpart)`);
176
+ // Deterministic spread sample of N (stride, not head — avoid file-order bias, the dedup-ceiling lesson).
177
+ const stride = Math.max(1, Math.floor(hard.length / N));
178
+ const sample = hard.filter((_, i) => i % stride === 0).slice(0, N);
179
+ console.error(` sampling ${sample.length} (stride ${stride}) for adjudication`);
180
+ if (OUT) {
181
+ writeFileSync(OUT, sample.map((p) => JSON.stringify(p)).join("\n") + "\n");
182
+ console.error(`[written] ${OUT}`);
183
+ }
184
+ else {
185
+ for (const p of sample.slice(0, 10)) {
186
+ console.log(JSON.stringify(p));
187
+ }
188
+ }
189
+ }
190
+ await main();
191
+ //# sourceMappingURL=gold-set-sample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gold-set-sample.js","sourceRoot":"","sources":["../../tools/gold-set-sample.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AAErC,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AACpD,OAAO,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAErE,kFAAkF;AAClF,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,SAAS,CAAC;IACvC,OAAO,EAAE;QACR,GAAG,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACvB,CAAC,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACrB,WAAW,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC/B,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC3B,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACzB,GAAG,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;KACvB;IACD,MAAM,EAAE,KAAK;IACb,gBAAgB,EAAE,IAAI;CACtB,CAAC,CAAA;AACF,yGAAyG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AA6D,CAAC,CAAA;IAE9F,yGAAyG;IACzG,MAAM,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAA;IACvD,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,MAAM,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;IAClE,OAAO,CAAC,KAAK,CAAC,gBAAgB,MAAM,CAAC,MAAM,YAAY,MAAM,oBAAoB,CAAC,CAAA;IAElF,IAAI,GAAG,EAAE,CAAC;QACT,aAAa,CAAC,GAAG,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,CAAA;QAC1E,OAAO,CAAC,KAAK,CAAC,aAAa,GAAG,EAAE,CAAC,CAAA;IAClC,CAAC;SAAM,CAAC;QACP,KAAK,MAAM,CAAC,IAAI,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC;YACrC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAA;QAC/B,CAAC;IACF,CAAC;AACF,CAAC;AAED,MAAM,IAAI,EAAE,CAAA"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * @copyright Sister Software
3
+ * @license AGPL-3.0
4
+ * @author Teffen Ellis, et al.
5
+ *
6
+ * Pure-Node matcher scale eval — the number behind "no Elasticsearch, no server."
7
+ *
8
+ * The differentiator vs Pelias/Nominatim + a bolt-on ER stack is that the whole resolve (block →
9
+ * Fellegi-Sunter → cluster) runs in ONE Node process with no external service. This measures how
10
+ * far that goes: synthetic geo-clustered records (so geo-blocking produces realistic candidate
11
+ * pairs, not one giant block or all singletons), resolved at increasing N, timing wall-clock +
12
+ * peak RSS. Geocoding is NOT in scope here (it's the per-record cost measured elsewhere) — this
13
+ * isolates the matcher's block/score/cluster cost as a function of N.
14
+ *
15
+ * Run: node --experimental-strip-types registry/tools/matcher-scale.ts\
16
+ * [--sizes 10000,50000,100000,250000,500000] [--dup 3] [--em] [--out-md <md>]
17
+ */
18
+ export {};
19
+ //# sourceMappingURL=matcher-scale.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"matcher-scale.d.ts","sourceRoot":"","sources":["../../tools/matcher-scale.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG"}