@mailwoman/registry 9.0.0 → 9.2.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 (149) hide show
  1. package/README.md +1 -1
  2. package/geojson.ts +3 -2
  3. package/ingest.ts +2 -1
  4. package/map-html.ts +4 -4
  5. package/out/geojson.d.ts.map +1 -1
  6. package/out/geojson.js +3 -2
  7. package/out/geojson.js.map +1 -1
  8. package/out/ingest.d.ts.map +1 -1
  9. package/out/ingest.js +2 -1
  10. package/out/ingest.js.map +1 -1
  11. package/out/map-html.d.ts +2 -2
  12. package/out/map-html.d.ts.map +1 -1
  13. package/out/map-html.js.map +1 -1
  14. package/out/reconcile.d.ts.map +1 -1
  15. package/out/reconcile.js +2 -1
  16. package/out/reconcile.js.map +1 -1
  17. package/out/resolve.d.ts.map +1 -1
  18. package/out/resolve.js +4 -1
  19. package/out/resolve.js.map +1 -1
  20. package/out/tools/coverage-reconciliation.js +2 -2
  21. package/out/tools/coverage-reconciliation.js.map +1 -1
  22. package/out/tools/cross-dataset-correlation.d.ts.map +1 -1
  23. package/out/tools/cross-dataset-correlation.js +6 -5
  24. package/out/tools/cross-dataset-correlation.js.map +1 -1
  25. package/out/tools/cross-source-threshold-sweep.js +2 -2
  26. package/out/tools/cross-source-threshold-sweep.js.map +1 -1
  27. package/out/tools/dedup-ceiling.d.ts.map +1 -1
  28. package/out/tools/dedup-ceiling.js +2 -3
  29. package/out/tools/dedup-ceiling.js.map +1 -1
  30. package/out/tools/eval-geocoder.d.ts +1 -1
  31. package/out/tools/eval-geocoder.d.ts.map +1 -1
  32. package/out/tools/geocoder-vs-provided-coords.d.ts.map +1 -1
  33. package/out/tools/geocoder-vs-provided-coords.js +3 -2
  34. package/out/tools/geocoder-vs-provided-coords.js.map +1 -1
  35. package/out/tools/gold-set-sample.d.ts.map +1 -1
  36. package/out/tools/gold-set-sample.js +4 -3
  37. package/out/tools/gold-set-sample.js.map +1 -1
  38. package/out/tools/index.d.ts +1 -6
  39. package/out/tools/index.d.ts.map +1 -1
  40. package/out/tools/index.js +1 -6
  41. package/out/tools/index.js.map +1 -1
  42. package/out/tools/learned-scorer-clustering-eval.d.ts.map +1 -1
  43. package/out/tools/learned-scorer-clustering-eval.js +1 -2
  44. package/out/tools/learned-scorer-clustering-eval.js.map +1 -1
  45. package/out/tools/learned-scorer-crossstate-eval.d.ts.map +1 -1
  46. package/out/tools/learned-scorer-crossstate-eval.js +1 -1
  47. package/out/tools/learned-scorer-crossstate-eval.js.map +1 -1
  48. package/out/tools/learned-scorer-eval.d.ts.map +1 -1
  49. package/out/tools/learned-scorer-eval.js +1 -6
  50. package/out/tools/learned-scorer-eval.js.map +1 -1
  51. package/out/tools/matcher-scale.d.ts.map +1 -1
  52. package/out/tools/matcher-scale.js +1 -1
  53. package/out/tools/matcher-scale.js.map +1 -1
  54. package/out/tools/nppes/levers.d.ts +38 -0
  55. package/out/tools/nppes/levers.d.ts.map +1 -0
  56. package/out/tools/nppes/levers.js +79 -0
  57. package/out/tools/nppes/levers.js.map +1 -0
  58. package/out/tools/nppes/org-name.d.ts +24 -0
  59. package/out/tools/nppes/org-name.d.ts.map +1 -0
  60. package/out/tools/nppes/org-name.js +42 -0
  61. package/out/tools/nppes/org-name.js.map +1 -0
  62. package/out/tools/nppes/overmerge-packet.d.ts +39 -0
  63. package/out/tools/nppes/overmerge-packet.d.ts.map +1 -0
  64. package/out/tools/nppes/overmerge-packet.js +55 -0
  65. package/out/tools/nppes/overmerge-packet.js.map +1 -0
  66. package/out/tools/nppes/report.d.ts +93 -0
  67. package/out/tools/nppes/report.d.ts.map +1 -0
  68. package/out/tools/nppes/report.js +188 -0
  69. package/out/tools/nppes/report.js.map +1 -0
  70. package/out/tools/nppes/sample.d.ts +64 -0
  71. package/out/tools/nppes/sample.d.ts.map +1 -0
  72. package/out/tools/nppes/sample.js +113 -0
  73. package/out/tools/nppes/sample.js.map +1 -0
  74. package/out/tools/nppes/scoring.d.ts +36 -0
  75. package/out/tools/nppes/scoring.d.ts.map +1 -0
  76. package/out/tools/nppes/scoring.js +80 -0
  77. package/out/tools/nppes/scoring.js.map +1 -0
  78. package/out/tools/nppes/truth-grains.d.ts +50 -0
  79. package/out/tools/nppes/truth-grains.d.ts.map +1 -0
  80. package/out/tools/nppes/truth-grains.js +148 -0
  81. package/out/tools/nppes/truth-grains.js.map +1 -0
  82. package/out/tools/nppes-dedup-benchmark.d.ts +4 -0
  83. package/out/tools/nppes-dedup-benchmark.d.ts.map +1 -1
  84. package/out/tools/nppes-dedup-benchmark.js +79 -652
  85. package/out/tools/nppes-dedup-benchmark.js.map +1 -1
  86. package/out/tools/shared.d.ts.map +1 -1
  87. package/out/tools/shared.js +5 -4
  88. package/out/tools/shared.js.map +1 -1
  89. package/out/tools/train-cross-gbt.d.ts.map +1 -1
  90. package/out/tools/train-cross-gbt.js +2 -2
  91. package/out/tools/train-cross-gbt.js.map +1 -1
  92. package/out/tools/train-gbt.d.ts.map +1 -1
  93. package/out/tools/train-gbt.js +2 -2
  94. package/out/tools/train-gbt.js.map +1 -1
  95. package/out/tools/train-org-cross-gbt.d.ts.map +1 -1
  96. package/out/tools/train-org-cross-gbt.js +2 -2
  97. package/out/tools/train-org-cross-gbt.js.map +1 -1
  98. package/out/tools/txhhsc-to-oarow.js +2 -2
  99. package/out/tools/txhhsc-to-oarow.js.map +1 -1
  100. package/out/tools/viz/cross-dataset-map.d.ts +2 -23
  101. package/out/tools/viz/cross-dataset-map.d.ts.map +1 -1
  102. package/out/tools/viz/cross-dataset-map.js +7 -28
  103. package/out/tools/viz/cross-dataset-map.js.map +1 -1
  104. package/out/tools/viz/geocode-first-surface.d.ts +2 -32
  105. package/out/tools/viz/geocode-first-surface.d.ts.map +1 -1
  106. package/out/tools/viz/geocode-first-surface.js +4 -33
  107. package/out/tools/viz/geocode-first-surface.js.map +1 -1
  108. package/out/tools/viz/render.js +1 -1
  109. package/out/tools/viz/render.js.map +1 -1
  110. package/out/tools/viz/source-provenance-map.d.ts +2 -22
  111. package/out/tools/viz/source-provenance-map.d.ts.map +1 -1
  112. package/out/tools/viz/source-provenance-map.js +7 -26
  113. package/out/tools/viz/source-provenance-map.js.map +1 -1
  114. package/out/types.d.ts +11 -1
  115. package/out/types.d.ts.map +1 -1
  116. package/out/types.js.map +1 -1
  117. package/package.json +78 -9
  118. package/reconcile.ts +2 -1
  119. package/resolve.ts +6 -1
  120. package/tools/coverage-reconciliation.ts +3 -3
  121. package/tools/cross-dataset-correlation.ts +7 -5
  122. package/tools/cross-source-threshold-sweep.ts +3 -3
  123. package/tools/dedup-ceiling.ts +3 -3
  124. package/tools/eval-geocoder.ts +1 -1
  125. package/tools/geocoder-vs-provided-coords.ts +4 -2
  126. package/tools/gold-set-sample.ts +5 -3
  127. package/tools/index.ts +1 -6
  128. package/tools/learned-scorer-clustering-eval.ts +4 -4
  129. package/tools/learned-scorer-crossstate-eval.ts +4 -4
  130. package/tools/learned-scorer-eval.ts +4 -9
  131. package/tools/matcher-scale.ts +2 -1
  132. package/tools/nppes/levers.ts +102 -0
  133. package/tools/nppes/org-name.ts +56 -0
  134. package/tools/nppes/overmerge-packet.ts +96 -0
  135. package/tools/nppes/report.ts +376 -0
  136. package/tools/nppes/sample.ts +197 -0
  137. package/tools/nppes/scoring.ts +114 -0
  138. package/tools/nppes/truth-grains.ts +201 -0
  139. package/tools/nppes-dedup-benchmark.ts +92 -868
  140. package/tools/shared.ts +6 -4
  141. package/tools/train-cross-gbt.ts +6 -5
  142. package/tools/train-gbt.ts +5 -4
  143. package/tools/train-org-cross-gbt.ts +6 -5
  144. package/tools/txhhsc-to-oarow.ts +2 -2
  145. package/tools/viz/cross-dataset-map.ts +12 -34
  146. package/tools/viz/geocode-first-surface.ts +5 -33
  147. package/tools/viz/render.ts +1 -1
  148. package/tools/viz/source-provenance-map.ts +14 -31
  149. package/types.ts +10 -1
@@ -0,0 +1,148 @@
1
+ /**
2
+ * @copyright Sister Software
3
+ * @license AGPL-3.0
4
+ * @author Teffen Ellis, et al.
5
+ * @file The org-name entity-truth grains: union-find labellings that collapse co-located same-org NPIs, keyed three
6
+ * ways — the address string, a haversine co-location radius, and an H3 cell.
7
+ */
8
+ import { haversineKm, jaccard } from "@mailwoman/match";
9
+ import { latLngToCell } from "h3-js";
10
+ import { ORG_TAU } from "./org-name.js";
11
+ /**
12
+ * Same-building distance for the coordinate grain — the `DEFAULT_DISTANCE_LEVELS` grain.
13
+ */
14
+ export const COLOCATION_KM = 0.05;
15
+ function createUnionFind() {
16
+ const parent = new Map();
17
+ const find = (x) => {
18
+ if (!parent.has(x)) {
19
+ parent.set(x, x);
20
+ }
21
+ let root = x;
22
+ while (parent.get(root) !== root) {
23
+ root = parent.get(root);
24
+ }
25
+ while (parent.get(x) !== root) {
26
+ const next = parent.get(x);
27
+ parent.set(x, root);
28
+ x = next;
29
+ }
30
+ return root;
31
+ };
32
+ const union = (a, b) => {
33
+ const ra = find(a);
34
+ const rb = find(b);
35
+ if (ra !== rb) {
36
+ parent.set(ra, rb);
37
+ }
38
+ };
39
+ return { find, union };
40
+ }
41
+ /**
42
+ * Union every pair in each block whose org names agree.
43
+ *
44
+ * Quadratic within a block, which is what keeps the gate honest: the Jaccard test is per PAIR, so a chain of
45
+ * near-matches cannot transitively fuse two genuinely distinct co-located orgs unless some pair actually agrees.
46
+ */
47
+ function unionAgreeingPairs(blocks, npiPrimary, uf) {
48
+ for (const group of blocks) {
49
+ for (let i = 0; i < group.length; i++) {
50
+ for (let j = i + 1; j < group.length; j++) {
51
+ if (jaccard(npiPrimary.get(group[i]).tokens, npiPrimary.get(group[j]).tokens) >= ORG_TAU) {
52
+ uf.union(group[i], group[j]);
53
+ }
54
+ }
55
+ }
56
+ }
57
+ }
58
+ /**
59
+ * An NPI's primary practice coordinate — the FIRST geocoded record it owns, which is its primary row because the sample
60
+ * builder pushes that row before the alternate-name and mailing variants.
61
+ */
62
+ export function collectPrimaryCoordinates(records) {
63
+ const npiCoord = new Map();
64
+ for (const rec of records) {
65
+ const c = rec.address?.geocode?.coordinate;
66
+ if (c && !npiCoord.has(rec.id)) {
67
+ npiCoord.set(rec.id, c);
68
+ }
69
+ }
70
+ return npiCoord;
71
+ }
72
+ /**
73
+ * The string-keyed org-name truth: same NPI ⇒ same entity (so an NPI's records stay together and recall is preserved),
74
+ * PLUS union two NPIs at the same address KEY whose primary org names agree.
75
+ *
76
+ * Blocking on the address string is a conservative LOWER bound — `1504 Taub LOOP` and `1504 Taub LP STE 100` key apart
77
+ * even though they are one building, so a correct merge across them is still charged as an error. The coordinate grain
78
+ * below is the tighter reading. Neither relies on the NPPES subpart flag, which the gold set showed misses 37%.
79
+ */
80
+ export function buildOrgNameGrain(npiPrimary) {
81
+ const uf = createUnionFind();
82
+ const byAddr = new Map();
83
+ for (const [npi, info] of npiPrimary) {
84
+ uf.find(npi);
85
+ // seed
86
+ if (!info.addrKey)
87
+ continue;
88
+ if (!byAddr.has(info.addrKey)) {
89
+ byAddr.set(info.addrKey, []);
90
+ }
91
+ byAddr.get(info.addrKey).push(npi);
92
+ }
93
+ unionAgreeingPairs(byAddr.values(), npiPrimary, uf);
94
+ return (rec) => (npiPrimary.has(rec.id) ? uf.find(rec.id) : rec.id);
95
+ }
96
+ /**
97
+ * The coordinate-keyed org-name truth: union same-org NPIs whose primary practice coordinates fall within
98
+ * {@linkcode COLOCATION_KM}. Blocking by the GEOCODED BUILDING catches the same-building pairs the address string keys
99
+ * apart, so this F1 is at or above the string grain's; the Jaccard gate still blocks distinct co-located orgs.
100
+ *
101
+ * Brute-force pairwise over the sampled NPIs — trivial at this scale, and unlike a cell key it has no boundary
102
+ * artifact.
103
+ */
104
+ export function buildOrgNameCoordGrain(npiPrimary, npiCoord) {
105
+ const uf = createUnionFind();
106
+ const coLocated = [...npiPrimary.keys()].filter((n) => npiCoord.has(n));
107
+ for (const n of npiPrimary.keys()) {
108
+ uf.find(n);
109
+ }
110
+ // seed every NPI (un-geocoded ones stay singletons)
111
+ for (let i = 0; i < coLocated.length; i++) {
112
+ for (let j = i + 1; j < coLocated.length; j++) {
113
+ const a = coLocated[i];
114
+ const b = coLocated[j];
115
+ if (haversineKm(npiCoord.get(a), npiCoord.get(b)) > COLOCATION_KM)
116
+ continue;
117
+ if (jaccard(npiPrimary.get(a).tokens, npiPrimary.get(b).tokens) >= ORG_TAU) {
118
+ uf.union(a, b);
119
+ }
120
+ }
121
+ }
122
+ return (rec) => (npiPrimary.has(rec.id) ? uf.find(rec.id) : rec.id);
123
+ }
124
+ /**
125
+ * The H3-cell org-name truth — the same building grain keyed on a cell instead of a radius, so co-location blocking is
126
+ * O(n) rather than O(n²).
127
+ *
128
+ * A robustness check on the coordinate grain, not a replacement: a hard cell boundary can split a same-building pair
129
+ * into adjacent cells, so this slightly UNDER-counts relative to the radius. Coarser resolutions absorb more of that.
130
+ */
131
+ export function buildOrgNameH3Grain(npiPrimary, npiCoord, h3Res) {
132
+ const uf = createUnionFind();
133
+ const byCell = new Map();
134
+ for (const n of npiPrimary.keys()) {
135
+ uf.find(n); // seed every NPI (un-geocoded ones stay singletons)
136
+ const c = npiCoord.get(n);
137
+ if (!c)
138
+ continue;
139
+ const cell = latLngToCell(c.latitude, c.longitude, h3Res);
140
+ if (!byCell.has(cell)) {
141
+ byCell.set(cell, []);
142
+ }
143
+ byCell.get(cell).push(n);
144
+ }
145
+ unionAgreeingPairs(byCell.values(), npiPrimary, uf);
146
+ return (rec) => (npiPrimary.has(rec.id) ? uf.find(rec.id) : rec.id);
147
+ }
148
+ //# sourceMappingURL=truth-grains.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"truth-grains.js","sourceRoot":"","sources":["../../../tools/nppes/truth-grains.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,WAAW,EAAE,OAAO,EAAe,MAAM,kBAAkB,CAAA;AACpE,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAIpC,OAAO,EAAE,OAAO,EAAmB,MAAM,eAAe,CAAA;AAExD;;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,SAAQ;QAChB,MAAM,IAAI,GAAG,YAAY,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,EAAE,KAAK,CAAC,CAAA;QAEzD,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;YACvB,MAAM,CAAC,GAAG,CAAC,IAAI,EAAE,EAAE,CAAC,CAAA;QACrB,CAAC;QAED,MAAM,CAAC,GAAG,CAAC,IAAI,CAAE,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IAC1B,CAAC;IAED,kBAAkB,CAAC,MAAM,CAAC,MAAM,EAAE,EAAE,UAAU,EAAE,EAAE,CAAC,CAAA;IAEnD,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,UAAU,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAA;AACpE,CAAC"}
@@ -21,6 +21,10 @@
21
21
  * alternate name, so every entity has ≥2 records and the dedup is non-trivial. Streams the 4.8 GB
22
22
  * registry via `streamRows` (#616), so nothing loads whole.
23
23
  *
24
+ * The stages live in `./nppes/`: the sample, the scorer, the truth grains, the lever progression,
25
+ * the adjudication packet, and the report. This file is the orchestration — read it for the order
26
+ * of operations, the modules for what each stage does.
27
+ *
24
28
  * Run: `mailwoman registry scorer-eval nppes-benchmark [--state TX] [--max-npis 300]
25
29
  * [--wof <admin.db>] [--data-root <dir>] [--no-train-em]
26
30
  * [--out-md docs/articles/evals/matcher-dedup/<date>-nppes-dedup-benchmark.md]`
@@ -1 +1 @@
1
- {"version":3,"file":"nppes-dedup-benchmark.d.ts","sourceRoot":"","sources":["../../tools/nppes-dedup-benchmark.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAoBH,OAAO,KAAK,EAAE,iBAAiB,EAAE,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