@mailwoman/registry 9.4.0 → 10.1.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.
- package/README.md +10 -10
- package/lib/address-key.ts +14 -10
- package/lib/geocode-handler.ts +6 -4
- package/lib/geojson.ts +13 -17
- package/lib/ingest.ts +57 -83
- package/lib/learned-scorer.ts +38 -44
- package/lib/map-html.ts +24 -70
- package/lib/models/crosssource-gbt-en-us.ts +9 -7
- package/lib/models/dedup-gbt-en-us.ts +9 -8
- package/lib/models/org-crosssource-gbt-en-us.ts +10 -8
- package/lib/reconcile.ts +45 -55
- package/lib/resolve.ts +180 -124
- package/lib/types.ts +18 -12
- package/out/address-key.d.ts +14 -10
- package/out/address-key.d.ts.map +1 -1
- package/out/address-key.js +14 -10
- package/out/address-key.js.map +1 -1
- package/out/geocode-handler.d.ts +6 -4
- package/out/geocode-handler.d.ts.map +1 -1
- package/out/geocode-handler.js +6 -4
- package/out/geocode-handler.js.map +1 -1
- package/out/geojson.d.ts +9 -5
- package/out/geojson.d.ts.map +1 -1
- package/out/geojson.js +13 -15
- package/out/geojson.js.map +1 -1
- package/out/ingest.d.ts +46 -75
- package/out/ingest.d.ts.map +1 -1
- package/out/ingest.js +27 -54
- package/out/ingest.js.map +1 -1
- package/out/learned-scorer.d.ts +29 -26
- package/out/learned-scorer.d.ts.map +1 -1
- package/out/learned-scorer.js +31 -39
- package/out/learned-scorer.js.map +1 -1
- package/out/map-html.d.ts +13 -32
- package/out/map-html.d.ts.map +1 -1
- package/out/map-html.js +9 -62
- package/out/map-html.js.map +1 -1
- package/out/models/crosssource-gbt-en-us.d.ts +9 -7
- package/out/models/crosssource-gbt-en-us.d.ts.map +1 -1
- package/out/models/crosssource-gbt-en-us.js +9 -7
- package/out/models/crosssource-gbt-en-us.js.map +1 -1
- package/out/models/dedup-gbt-en-us.d.ts +9 -8
- package/out/models/dedup-gbt-en-us.d.ts.map +1 -1
- package/out/models/dedup-gbt-en-us.js +9 -8
- package/out/models/dedup-gbt-en-us.js.map +1 -1
- package/out/models/org-crosssource-gbt-en-us.d.ts +10 -8
- package/out/models/org-crosssource-gbt-en-us.d.ts.map +1 -1
- package/out/models/org-crosssource-gbt-en-us.js +10 -8
- package/out/models/org-crosssource-gbt-en-us.js.map +1 -1
- package/out/reconcile.d.ts +35 -50
- package/out/reconcile.d.ts.map +1 -1
- package/out/reconcile.js +19 -43
- package/out/reconcile.js.map +1 -1
- package/out/resolve.d.ts +150 -90
- package/out/resolve.d.ts.map +1 -1
- package/out/resolve.js +62 -63
- package/out/resolve.js.map +1 -1
- package/out/tools/coverage-reconciliation.d.ts +23 -23
- package/out/tools/coverage-reconciliation.d.ts.map +1 -1
- package/out/tools/coverage-reconciliation.js +15 -26
- package/out/tools/coverage-reconciliation.js.map +1 -1
- package/out/tools/cross/dataset-correlation.d.ts +58 -0
- package/out/tools/cross/dataset-correlation.d.ts.map +1 -0
- package/out/tools/{cross-dataset-correlation.js → cross/dataset-correlation.js} +10 -62
- package/out/tools/cross/dataset-correlation.js.map +1 -0
- package/out/tools/cross/source-threshold-sweep.d.ts +60 -0
- package/out/tools/cross/source-threshold-sweep.d.ts.map +1 -0
- package/out/tools/{cross-source-threshold-sweep.js → cross/source-threshold-sweep.js} +15 -41
- package/out/tools/cross/source-threshold-sweep.js.map +1 -0
- package/out/tools/dedup-ceiling.d.ts +23 -26
- package/out/tools/dedup-ceiling.d.ts.map +1 -1
- package/out/tools/dedup-ceiling.js +22 -41
- package/out/tools/dedup-ceiling.js.map +1 -1
- package/out/tools/eval-geocoder.d.ts +22 -15
- package/out/tools/eval-geocoder.d.ts.map +1 -1
- package/out/tools/eval-geocoder.js +5 -6
- package/out/tools/eval-geocoder.js.map +1 -1
- package/out/tools/geocoder/namesake-probe.d.ts +33 -0
- package/out/tools/geocoder/namesake-probe.d.ts.map +1 -0
- package/out/tools/{geocoder-namesake-probe.js → geocoder/namesake-probe.js} +7 -8
- package/out/tools/geocoder/namesake-probe.js.map +1 -0
- package/out/tools/geocoder/vs-provided-coords.d.ts +53 -0
- package/out/tools/geocoder/vs-provided-coords.d.ts.map +1 -0
- package/out/tools/{geocoder-vs-provided-coords.js → geocoder/vs-provided-coords.js} +31 -28
- package/out/tools/geocoder/vs-provided-coords.js.map +1 -0
- package/out/tools/gold-set-sample.d.ts +27 -18
- package/out/tools/gold-set-sample.d.ts.map +1 -1
- package/out/tools/gold-set-sample.js +18 -22
- package/out/tools/gold-set-sample.js.map +1 -1
- package/out/tools/learned/scorer/clustering-eval.d.ts +77 -0
- package/out/tools/learned/scorer/clustering-eval.d.ts.map +1 -0
- package/out/tools/{learned-scorer-clustering-eval.js → learned/scorer/clustering-eval.js} +29 -39
- package/out/tools/learned/scorer/clustering-eval.js.map +1 -0
- package/out/tools/learned/scorer/crossstate-eval.d.ts +65 -0
- package/out/tools/learned/scorer/crossstate-eval.d.ts.map +1 -0
- package/out/tools/{learned-scorer-crossstate-eval.js → learned/scorer/crossstate-eval.js} +20 -26
- package/out/tools/learned/scorer/crossstate-eval.js.map +1 -0
- package/out/tools/learned/scorer/eval.d.ts +60 -0
- package/out/tools/learned/scorer/eval.d.ts.map +1 -0
- package/out/tools/{learned-scorer-eval.js → learned/scorer/eval.js} +12 -72
- package/out/tools/learned/scorer/eval.js.map +1 -0
- package/out/tools/matcher-scale.d.ts +12 -17
- package/out/tools/matcher-scale.d.ts.map +1 -1
- package/out/tools/matcher-scale.js +11 -29
- package/out/tools/matcher-scale.js.map +1 -1
- package/out/tools/nppes/dedup-benchmark.d.ts +81 -0
- package/out/tools/nppes/dedup-benchmark.d.ts.map +1 -0
- package/out/tools/{nppes-dedup-benchmark.js → nppes/dedup-benchmark.js} +21 -67
- package/out/tools/nppes/dedup-benchmark.js.map +1 -0
- package/out/tools/nppes/org-name.d.ts +5 -4
- package/out/tools/nppes/org-name.d.ts.map +1 -1
- package/out/tools/nppes/org-name.js +2 -2
- package/out/tools/nppes/org-name.js.map +1 -1
- package/out/tools/nppes/overmerge-packet.d.ts +15 -11
- package/out/tools/nppes/overmerge-packet.d.ts.map +1 -1
- package/out/tools/nppes/overmerge-packet.js +7 -8
- package/out/tools/nppes/overmerge-packet.js.map +1 -1
- package/out/tools/nppes/report.d.ts +17 -13
- package/out/tools/nppes/report.d.ts.map +1 -1
- package/out/tools/nppes/report.js +6 -14
- package/out/tools/nppes/report.js.map +1 -1
- package/out/tools/nppes/sample.d.ts +28 -17
- package/out/tools/nppes/sample.d.ts.map +1 -1
- package/out/tools/nppes/sample.js +23 -26
- package/out/tools/nppes/sample.js.map +1 -1
- package/out/tools/nppes/scoring.d.ts +7 -6
- package/out/tools/nppes/scoring.d.ts.map +1 -1
- package/out/tools/nppes/scoring.js +6 -5
- package/out/tools/nppes/scoring.js.map +1 -1
- package/out/tools/nppes/settings.d.ts +10 -7
- package/out/tools/nppes/settings.d.ts.map +1 -1
- package/out/tools/nppes/settings.js +16 -16
- package/out/tools/nppes/settings.js.map +1 -1
- package/out/tools/nppes/truth-grains.d.ts +36 -23
- package/out/tools/nppes/truth-grains.d.ts.map +1 -1
- package/out/tools/nppes/truth-grains.js +36 -20
- package/out/tools/nppes/truth-grains.js.map +1 -1
- package/out/tools/shared.d.ts +63 -59
- package/out/tools/shared.d.ts.map +1 -1
- package/out/tools/shared.js +49 -66
- package/out/tools/shared.js.map +1 -1
- package/out/tools/train/cross-gbt.d.ts +88 -0
- package/out/tools/train/cross-gbt.d.ts.map +1 -0
- package/out/tools/{train-cross-gbt.js → train/cross-gbt.js} +15 -26
- package/out/tools/train/cross-gbt.js.map +1 -0
- package/out/tools/train/gbt.d.ts +85 -0
- package/out/tools/train/gbt.d.ts.map +1 -0
- package/out/tools/{train-gbt.js → train/gbt.js} +28 -32
- package/out/tools/train/gbt.js.map +1 -0
- package/out/tools/train/org-cross-gbt.d.ts +84 -0
- package/out/tools/train/org-cross-gbt.d.ts.map +1 -0
- package/out/tools/{train-org-cross-gbt.js → train/org-cross-gbt.js} +19 -23
- package/out/tools/train/org-cross-gbt.js.map +1 -0
- package/out/tools/txhhsc-to-oarow.d.ts +14 -9
- package/out/tools/txhhsc-to-oarow.d.ts.map +1 -1
- package/out/tools/txhhsc-to-oarow.js +16 -15
- package/out/tools/txhhsc-to-oarow.js.map +1 -1
- package/out/tools/viz/browser.d.ts +6 -5
- package/out/tools/viz/browser.d.ts.map +1 -1
- package/out/tools/viz/browser.js +6 -5
- package/out/tools/viz/browser.js.map +1 -1
- package/out/tools/viz/cross-dataset-map.d.ts +7 -4
- package/out/tools/viz/cross-dataset-map.d.ts.map +1 -1
- package/out/tools/viz/cross-dataset-map.js +9 -6
- package/out/tools/viz/cross-dataset-map.js.map +1 -1
- package/out/tools/viz/geocode-first-surface.d.ts +10 -5
- package/out/tools/viz/geocode-first-surface.d.ts.map +1 -1
- package/out/tools/viz/geocode-first-surface.js +16 -11
- package/out/tools/viz/geocode-first-surface.js.map +1 -1
- package/out/tools/viz/{render-map.d.ts → render/map.d.ts} +6 -6
- package/out/tools/viz/render/map.d.ts.map +1 -0
- package/out/tools/viz/{render-map.js → render/map.js} +7 -6
- package/out/tools/viz/render/map.js.map +1 -0
- package/out/tools/viz/render.d.ts +12 -8
- package/out/tools/viz/render.d.ts.map +1 -1
- package/out/tools/viz/render.js +8 -7
- package/out/tools/viz/render.js.map +1 -1
- package/out/tools/viz/source-provenance-map.d.ts +19 -7
- package/out/tools/viz/source-provenance-map.d.ts.map +1 -1
- package/out/tools/viz/source-provenance-map.js +11 -8
- package/out/tools/viz/source-provenance-map.js.map +1 -1
- package/out/tools/viz/yardstick-figure.d.ts +2 -21
- package/out/tools/viz/yardstick-figure.d.ts.map +1 -1
- package/out/tools/viz/yardstick-figure.js +3 -39
- package/out/tools/viz/yardstick-figure.js.map +1 -1
- package/out/types.d.ts +17 -11
- package/out/types.d.ts.map +1 -1
- package/out/types.js +2 -2
- package/out/types.js.map +1 -1
- package/package.json +41 -184
- package/{lib/tools → tools}/coverage-reconciliation.ts +27 -30
- package/{lib/tools/cross-dataset-correlation.ts → tools/cross/dataset-correlation.ts} +31 -72
- package/{lib/tools/cross-source-threshold-sweep.ts → tools/cross/source-threshold-sweep.ts} +29 -46
- package/{lib/tools → tools}/dedup-ceiling.ts +34 -45
- package/tools/eval-geocoder.ts +74 -0
- package/{lib/tools/geocoder-namesake-probe.ts → tools/geocoder/namesake-probe.ts} +9 -8
- package/{lib/tools/geocoder-vs-provided-coords.ts → tools/geocoder/vs-provided-coords.ts} +39 -30
- package/{lib/tools → tools}/gold-set-sample.ts +35 -29
- package/{lib/tools/learned-scorer-clustering-eval.ts → tools/learned/scorer/clustering-eval.ts} +49 -45
- package/{lib/tools/learned-scorer-crossstate-eval.ts → tools/learned/scorer/crossstate-eval.ts} +34 -30
- package/{lib/tools/learned-scorer-eval.ts → tools/learned/scorer/eval.ts} +35 -78
- package/{lib/tools → tools}/matcher-scale.ts +21 -33
- package/{lib/tools/nppes-dedup-benchmark.ts → tools/nppes/dedup-benchmark.ts} +37 -82
- package/{lib/tools → tools}/nppes/org-name.ts +5 -4
- package/{lib/tools → tools}/nppes/overmerge-packet.ts +17 -13
- package/{lib/tools → tools}/nppes/report.ts +32 -25
- package/{lib/tools → tools}/nppes/sample.ts +41 -36
- package/{lib/tools → tools}/nppes/scoring.ts +7 -6
- package/{lib/tools → tools}/nppes/settings.ts +16 -16
- package/{lib/tools → tools}/nppes/truth-grains.ts +46 -26
- package/{lib/tools → tools}/shared.ts +73 -83
- package/{lib/tools/train-cross-gbt.ts → tools/train/cross-gbt.ts} +38 -34
- package/{lib/tools/train-gbt.ts → tools/train/gbt.ts} +55 -41
- package/{lib/tools/train-org-cross-gbt.ts → tools/train/org-cross-gbt.ts} +39 -30
- package/{lib/tools → tools}/txhhsc-to-oarow.ts +24 -18
- package/{lib/tools → tools}/viz/browser.ts +6 -5
- package/{lib/tools → tools}/viz/cross-dataset-map.ts +15 -9
- package/{lib/tools → tools}/viz/geocode-first-surface.ts +28 -17
- package/{lib/tools/viz/render-map.ts → tools/viz/render/map.ts} +7 -6
- package/{lib/tools → tools}/viz/render.ts +16 -11
- package/{lib/tools → tools}/viz/source-provenance-map.ts +30 -15
- package/{lib/tools → tools}/viz/yardstick-figure.ts +6 -43
- package/lib/tools/eval-geocoder.ts +0 -67
- package/lib/tools/index.ts +0 -31
- package/out/tools/cross-dataset-correlation.d.ts +0 -65
- package/out/tools/cross-dataset-correlation.d.ts.map +0 -1
- package/out/tools/cross-dataset-correlation.js.map +0 -1
- package/out/tools/cross-source-threshold-sweep.d.ts +0 -66
- package/out/tools/cross-source-threshold-sweep.d.ts.map +0 -1
- package/out/tools/cross-source-threshold-sweep.js.map +0 -1
- package/out/tools/geocoder-namesake-probe.d.ts +0 -32
- package/out/tools/geocoder-namesake-probe.d.ts.map +0 -1
- package/out/tools/geocoder-namesake-probe.js.map +0 -1
- package/out/tools/geocoder-vs-provided-coords.d.ts +0 -50
- package/out/tools/geocoder-vs-provided-coords.d.ts.map +0 -1
- package/out/tools/geocoder-vs-provided-coords.js.map +0 -1
- package/out/tools/index.d.ts +0 -31
- package/out/tools/index.d.ts.map +0 -1
- package/out/tools/index.js +0 -31
- package/out/tools/index.js.map +0 -1
- package/out/tools/learned-scorer-clustering-eval.d.ts +0 -74
- package/out/tools/learned-scorer-clustering-eval.d.ts.map +0 -1
- package/out/tools/learned-scorer-clustering-eval.js.map +0 -1
- package/out/tools/learned-scorer-crossstate-eval.d.ts +0 -59
- package/out/tools/learned-scorer-crossstate-eval.d.ts.map +0 -1
- package/out/tools/learned-scorer-crossstate-eval.js.map +0 -1
- package/out/tools/learned-scorer-eval.d.ts +0 -77
- package/out/tools/learned-scorer-eval.d.ts.map +0 -1
- package/out/tools/learned-scorer-eval.js.map +0 -1
- package/out/tools/nppes-dedup-benchmark.d.ts +0 -101
- package/out/tools/nppes-dedup-benchmark.d.ts.map +0 -1
- package/out/tools/nppes-dedup-benchmark.js.map +0 -1
- package/out/tools/train-cross-gbt.d.ts +0 -78
- package/out/tools/train-cross-gbt.d.ts.map +0 -1
- package/out/tools/train-cross-gbt.js.map +0 -1
- package/out/tools/train-gbt.d.ts +0 -69
- package/out/tools/train-gbt.d.ts.map +0 -1
- package/out/tools/train-gbt.js.map +0 -1
- package/out/tools/train-org-cross-gbt.d.ts +0 -71
- package/out/tools/train-org-cross-gbt.d.ts.map +0 -1
- package/out/tools/train-org-cross-gbt.js.map +0 -1
- package/out/tools/viz/render-map.d.ts.map +0 -1
- package/out/tools/viz/render-map.js.map +0 -1
|
@@ -8,14 +8,15 @@
|
|
|
8
8
|
export { orgTokens } from "#tools/shared"
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
|
-
* Jaccard floor at or above which two {@linkcode orgTokens} sets count as the
|
|
12
|
-
* threshold.
|
|
11
|
+
* Jaccard floor at or above which two {@linkcode orgTokens} sets count as the
|
|
12
|
+
* same organization — the gold-set threshold.
|
|
13
13
|
*/
|
|
14
14
|
export const ORG_TAU = 0.7
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
|
-
* An NPI's primary registry identity: the org-name token set plus the address key of its practice location.
|
|
18
|
-
*
|
|
17
|
+
* An NPI's primary registry identity: the org-name token set plus the address key of its practice location.
|
|
18
|
+
*
|
|
19
|
+
* Every grain of the org-name truth blocks on a location and filters on the tokens.
|
|
19
20
|
*/
|
|
20
21
|
export interface NPIPrimary {
|
|
21
22
|
tokens: Set<string>
|
|
@@ -2,46 +2,50 @@
|
|
|
2
2
|
* @copyright Sister Software
|
|
3
3
|
* @license AGPL-3.0
|
|
4
4
|
* @author Teffen Ellis, et al.
|
|
5
|
-
* @file
|
|
6
|
-
* formatted for human review.
|
|
5
|
+
* @file Writes the over-merged NPPES clusters with every matcher-visible field for human adjudication.
|
|
7
6
|
*/
|
|
8
7
|
|
|
9
8
|
import { writeLocalTextFile } from "@mailwoman/core/fs/writers"
|
|
10
|
-
import {
|
|
9
|
+
import { formatPersonName } from "@mailwoman/record/name"
|
|
10
|
+
import type { PathBuilderLike } from "path-ts"
|
|
11
11
|
|
|
12
12
|
import type { ResolvedEntity, SourceRecord } from "#index"
|
|
13
13
|
import type { MessyRow } from "#tools/nppes/sample"
|
|
14
14
|
import type { TruthLabel } from "#tools/nppes/truth-grains"
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* The inputs to {@link writeOvermergePacket}.
|
|
18
18
|
*/
|
|
19
19
|
export interface OvermergePacketInput {
|
|
20
20
|
/**
|
|
21
|
-
* The clusters to inspect
|
|
21
|
+
* The clusters to inspect.
|
|
22
|
+
* Callers pass the clusters from the shipped matcher config.
|
|
22
23
|
*/
|
|
23
24
|
entities: readonly ResolvedEntity[]
|
|
24
25
|
/**
|
|
25
|
-
* The source rows
|
|
26
|
+
* The source rows.
|
|
27
|
+
*
|
|
28
|
+
* The packet reads the authorized official and taxonomy from them.
|
|
26
29
|
*/
|
|
27
30
|
rows: readonly MessyRow[]
|
|
28
31
|
recordCount: number
|
|
29
32
|
maxNpis: number
|
|
30
33
|
/**
|
|
31
|
-
* The state the sample was drawn from
|
|
34
|
+
* The state that the sample was drawn from.
|
|
35
|
+
* The packet header prints it.
|
|
32
36
|
*/
|
|
33
37
|
state: string
|
|
34
38
|
orgNameLabel: TruthLabel
|
|
35
39
|
}
|
|
36
40
|
|
|
37
41
|
/**
|
|
38
|
-
*
|
|
42
|
+
* Writes the adjudication packet and returns the number of over-merged clusters in it.
|
|
39
43
|
*
|
|
40
|
-
* A cluster
|
|
41
|
-
*
|
|
42
|
-
*
|
|
44
|
+
* A cluster is over-merged when its members have more than one org-name truth label.
|
|
45
|
+
* A reviewer marks each cluster as one real entity or as distinct providers.
|
|
46
|
+
* which separates model error from truth-label error.
|
|
43
47
|
*/
|
|
44
|
-
export async function writeOvermergePacket(path:
|
|
48
|
+
export async function writeOvermergePacket(path: PathBuilderLike, input: OvermergePacketInput): Promise<number> {
|
|
45
49
|
const { entities, rows, recordCount, maxNpis, state, orgNameLabel } = input
|
|
46
50
|
const rowByID = new Map(rows.map((r) => [r.npi, r]))
|
|
47
51
|
|
|
@@ -80,7 +84,7 @@ export async function writeOvermergePacket(path: string, input: OvermergePacketI
|
|
|
80
84
|
const src = rowByID.get(rec.id)
|
|
81
85
|
|
|
82
86
|
out.push(
|
|
83
|
-
` - npi=${rec.id} · name="${
|
|
87
|
+
` - npi=${rec.id} · name="${formatPersonName(rec.name, "short")}" · org="${rec.organization?.canonical ?? ""}" · addr="${rec.address?.raw ?? ""}" · auth="${src?.auth ?? ""}" · taxonomy="${src?.taxonomy ?? ""}"`
|
|
84
88
|
)
|
|
85
89
|
}
|
|
86
90
|
}
|
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
* @copyright Sister Software
|
|
3
3
|
* @license AGPL-3.0
|
|
4
4
|
* @author Teffen Ellis, et al.
|
|
5
|
-
* @file The NPPES dedup benchmark's markdown report. Pure: every figure comes from the input, because eval figures are
|
|
6
|
-
* never hand-typed into docs.
|
|
7
5
|
*/
|
|
8
6
|
|
|
9
7
|
import type { TermFrequencyTable } from "@mailwoman/match"
|
|
@@ -14,9 +12,6 @@ import type { Score } from "#tools/nppes/scoring"
|
|
|
14
12
|
import { COLOCATION_KM } from "#tools/nppes/truth-grains"
|
|
15
13
|
import { pct } from "#tools/shared"
|
|
16
14
|
|
|
17
|
-
/**
|
|
18
|
-
* F1 gap within which two blocking strategies are treated as equivalent.
|
|
19
|
-
*/
|
|
20
15
|
const BLOCKING_PARITY_TOLERANCE = 0.015
|
|
21
16
|
|
|
22
17
|
/**
|
|
@@ -32,7 +27,7 @@ export interface SettingScore {
|
|
|
32
27
|
*/
|
|
33
28
|
export interface SweepArm {
|
|
34
29
|
/**
|
|
35
|
-
*
|
|
30
|
+
* The link threshold, in bits.
|
|
36
31
|
*/
|
|
37
32
|
t: number
|
|
38
33
|
res: Pick<ResolveResult, "candidatePairs" | "droppedBlocks">
|
|
@@ -40,36 +35,47 @@ export interface SweepArm {
|
|
|
40
35
|
}
|
|
41
36
|
|
|
42
37
|
/**
|
|
43
|
-
*
|
|
38
|
+
* Inputs consumed by the report.
|
|
44
39
|
*/
|
|
45
40
|
export interface NPPESReportInput {
|
|
46
41
|
state: string
|
|
42
|
+
|
|
47
43
|
/**
|
|
48
|
-
*
|
|
44
|
+
* The number of sampled NPIs.
|
|
45
|
+
* This is the true entity count at the NPI grain.
|
|
49
46
|
*/
|
|
50
47
|
keptNpis: number
|
|
51
48
|
recordCount: number
|
|
49
|
+
|
|
52
50
|
/**
|
|
53
|
-
*
|
|
51
|
+
* The number of records whose address was placed.
|
|
54
52
|
*/
|
|
55
53
|
geocoded: number
|
|
56
54
|
trainEM: boolean
|
|
55
|
+
|
|
57
56
|
/**
|
|
58
|
-
* The corpus-wide table
|
|
57
|
+
* The corpus-wide address-frequency table fed to the progression, of
|
|
58
|
+
* which only `total` and `distinct` are reported.
|
|
59
59
|
*/
|
|
60
60
|
addressFrequency: TermFrequencyTable
|
|
61
|
+
|
|
61
62
|
/**
|
|
62
|
-
* The setting progression
|
|
63
|
+
* The setting progression from the bare baseline to the full stack.
|
|
64
|
+
* The report requires at least four rows.
|
|
63
65
|
*/
|
|
64
66
|
progression: readonly SettingScore[]
|
|
67
|
+
|
|
65
68
|
/**
|
|
66
|
-
*
|
|
67
|
-
*
|
|
69
|
+
* The zero-config `resolveEntities` score, reported apart because its input-scoped
|
|
70
|
+
* frequency table is sparse on a sub-sample.
|
|
68
71
|
*/
|
|
69
72
|
defaultOutOfBox: Score
|
|
70
73
|
sweep: readonly SweepArm[]
|
|
74
|
+
|
|
71
75
|
/**
|
|
72
|
-
* The best-F1 arm.
|
|
76
|
+
* The best-F1 arm.
|
|
77
|
+
*
|
|
78
|
+
* It must be an element of `sweep` because the table marks it by identity.
|
|
73
79
|
*/
|
|
74
80
|
best: SweepArm
|
|
75
81
|
entityCount: number
|
|
@@ -85,13 +91,16 @@ export interface NPPESReportInput {
|
|
|
85
91
|
gbtOrg: Score
|
|
86
92
|
gbtOrgCoord: Score
|
|
87
93
|
gbtOrgH3: Score
|
|
94
|
+
|
|
88
95
|
/**
|
|
89
|
-
* The optional `--candidate` A/B row.
|
|
96
|
+
* The optional `--candidate` A/B row, or `null` when no candidate was given.
|
|
90
97
|
*/
|
|
91
98
|
candidate: { label: string; npi: Score; entity: Score } | null
|
|
92
99
|
h3Res: number
|
|
100
|
+
|
|
93
101
|
/**
|
|
94
|
-
*
|
|
102
|
+
* The number of sampled NPIs whose primary practice address was placed.
|
|
103
|
+
* This bounds what the coordinate grain can act on.
|
|
95
104
|
*/
|
|
96
105
|
geocodedNpis: number
|
|
97
106
|
}
|
|
@@ -129,12 +138,10 @@ export function renderNPPESDedupReport(input: NPPESReportInput): string {
|
|
|
129
138
|
geocodedNpis,
|
|
130
139
|
} = input
|
|
131
140
|
|
|
132
|
-
const baseline = progression[0]!
|
|
133
|
-
|
|
134
|
-
// is: a row called `best` invites reading a stack-wide delta as one setting's marginal effect, which is how the
|
|
135
|
-
// authorized-official sentence below came to quote a five-setting number.
|
|
141
|
+
const baseline = progression[0]!
|
|
142
|
+
|
|
136
143
|
const fullStack = progression.at(-1)!
|
|
137
|
-
const base = sweep[0]!
|
|
144
|
+
const base = sweep[0]!
|
|
138
145
|
|
|
139
146
|
const signed = (x: number) => `${x >= 0 ? "+" : ""}${x.toFixed(1)}pp`
|
|
140
147
|
|
|
@@ -148,7 +155,7 @@ export function renderNPPESDedupReport(input: NPPESReportInput): string {
|
|
|
148
155
|
"",
|
|
149
156
|
`**Headline — org-name truth (the honest grain):** the shipped ` +
|
|
150
157
|
`matcher resolves these records at **F1 ${pct(gbtOrg.f1)}%** against org-name entity-truth — not the NPI-level ` +
|
|
151
|
-
`${pct(gbtNPI.f1)}
|
|
158
|
+
`${pct(gbtNPI.f1)}%. It mostly measures NPI over-segmentation (one organization holds many subpart NPIs. Therefore, ` +
|
|
152
159
|
`correct co-located merges are scored as errors). Same clusters, three rulers: ` +
|
|
153
160
|
`**NPI ${pct(gbtNPI.f1)}% → site ${pct(gbtEntity.f1)}% → org-name ${pct(gbtOrg.f1)}%** ` +
|
|
154
161
|
`(${keptNpis} NPI → ${entityCount} site → ${orgCount} org-name classes); the climb is the yardstick getting honest, ` +
|
|
@@ -189,7 +196,7 @@ export function renderNPPESDedupReport(input: NPPESReportInput): string {
|
|
|
189
196
|
`**${pct(defaultOutOfBox.f1)}%** on this sample — essentially the baseline. The default auto-computes the ` +
|
|
190
197
|
`address-frequency table over the INPUT records, and this benchmark deliberately sub-samples ${N} records, so ` +
|
|
191
198
|
`that table is too sparse to carry the inverse-frequency signal (a corpus statistic you can't synthesize from a ` +
|
|
192
|
-
`
|
|
199
|
+
`sample). It's **not a regression**, because it meets the baseline without adding over-merges — it's the honest floor when the input isn't ` +
|
|
193
200
|
`corpus-scale. Fed the corpus-wide table (the \`+ inverse-address-frequency\` row above, what the CLI builds from ` +
|
|
194
201
|
`the full source files) the SAME default reaches the **${pct(progression[2]!.score.f1)}%** baseline. On a full-dataset ` +
|
|
195
202
|
`dedup the input IS the corpus, so zero-config reaches the baseline on its own.`
|
|
@@ -214,7 +221,7 @@ export function renderNPPESDedupReport(input: NPPESReportInput): string {
|
|
|
214
221
|
lines.push(
|
|
215
222
|
best.t === 0
|
|
216
223
|
? `Best F1 is at the **default threshold** (${pct(base.score.f1)}%): raising it only trades recall away faster ` +
|
|
217
|
-
`than it
|
|
224
|
+
`than it provides precision. So the threshold knob alone can't separate co-located distinct providers — the ` +
|
|
218
225
|
`over-merge is structural, in the comparison model, not the cutoff.`
|
|
219
226
|
: `Best F1 **${pct(best.score.f1)}%** (ARI ${best.score.ari.toFixed(3)}) at threshold ${best.t}, vs **${pct(base.score.f1)}%** at the ` +
|
|
220
227
|
`default — the threshold knob moves it ${(100 * (best.score.f1 - base.score.f1)).toFixed(0)}pp. Higher thresholds trade recall for precision.`
|
|
@@ -334,7 +341,7 @@ export function renderNPPESDedupReport(input: NPPESReportInput): string {
|
|
|
334
341
|
lines.push(
|
|
335
342
|
`Caveats: the programmatic site-truth is CONSERVATIVE (collapses only NPPES-flagged subparts; unflagged same-org pairs still ` +
|
|
336
343
|
`read as over-merge), so it understates the subpart correction. A hand-adjudicated gold set on the ambiguous co-located + ` +
|
|
337
|
-
`two-site
|
|
344
|
+
`two-site stratum is the next refinement (#625).`
|
|
338
345
|
)
|
|
339
346
|
|
|
340
347
|
lines.push("")
|
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
* @copyright Sister Software
|
|
3
3
|
* @license AGPL-3.0
|
|
4
4
|
* @author Teffen Ellis, et al.
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
5
|
+
*
|
|
6
|
+
* The NPPES benchmark's input sample: the variation-rich multi-record set per NPI, plus the
|
|
7
|
+
* corpus-wide address-frequency table built in the same pass. One registry pass serves any number
|
|
8
|
+
* of states, so the cross-state eval samples two at once.
|
|
8
9
|
*/
|
|
9
10
|
|
|
10
11
|
import { isPresent } from "@mailwoman/core/objects"
|
|
@@ -15,8 +16,10 @@ import { orgTokens, type NPIPrimary } from "#tools/nppes/org-name"
|
|
|
15
16
|
import { addr, MIN_GROUP_SIZE, norm, NPPES_COLUMNS as C } from "#tools/shared"
|
|
16
17
|
|
|
17
18
|
/**
|
|
18
|
-
* One synthetic input row for the matcher
|
|
19
|
-
*
|
|
19
|
+
* One synthetic input row for the matcher.
|
|
20
|
+
*
|
|
21
|
+
* `npi` is the hidden NPI-level truth.
|
|
22
|
+
* `entityID` is the site-level entity-level truth (subpart-collapsed).
|
|
20
23
|
*/
|
|
21
24
|
export interface MessyRow extends Record<string, string> {
|
|
22
25
|
npi: string
|
|
@@ -25,19 +28,20 @@ export interface MessyRow extends Record<string, string> {
|
|
|
25
28
|
address: string
|
|
26
29
|
auth: string
|
|
27
30
|
/**
|
|
28
|
-
* Whitespace-joined taxonomy-code set
|
|
31
|
+
* Whitespace-joined taxonomy-code set, up to 15 slots, used as the code-set discriminator.
|
|
29
32
|
*/
|
|
30
33
|
taxonomy: string
|
|
31
34
|
entityID: string
|
|
32
35
|
}
|
|
33
36
|
|
|
34
37
|
/**
|
|
35
|
-
* One state's
|
|
38
|
+
* One state's share of the sample pass.
|
|
36
39
|
*/
|
|
37
40
|
export interface NPPESStateSample {
|
|
38
41
|
rows: MessyRow[]
|
|
39
42
|
/**
|
|
40
|
-
* The sampled NPIs
|
|
43
|
+
* The sampled NPIs.
|
|
44
|
+
* Their count is the true-entity count at the NPI grain.
|
|
41
45
|
*/
|
|
42
46
|
keptNpis: Set<string>
|
|
43
47
|
/**
|
|
@@ -51,8 +55,10 @@ export interface NPPESStateSample {
|
|
|
51
55
|
*/
|
|
52
56
|
export interface NPPESSample extends NPPESStateSample {
|
|
53
57
|
/**
|
|
54
|
-
* Corpus-wide address-frequency table
|
|
55
|
-
*
|
|
58
|
+
* Corpus-wide address-frequency table, the inverse-frequency signal.
|
|
59
|
+
*
|
|
60
|
+
* Counted over every practice address in the registry rather than just the sample,
|
|
61
|
+
* so the sharing structure is a corpus statistic rather than a sampling artifact.
|
|
56
62
|
*/
|
|
57
63
|
addressFrequency: TermFrequencyTable
|
|
58
64
|
}
|
|
@@ -64,20 +70,23 @@ export interface NPPESSampleOptions {
|
|
|
64
70
|
registryPath: string
|
|
65
71
|
otherNamesPath: string
|
|
66
72
|
/**
|
|
67
|
-
* Already upper-cased
|
|
73
|
+
* Already upper-cased.
|
|
74
|
+
* Compared against the practice-location state column.
|
|
68
75
|
*/
|
|
69
76
|
state: string
|
|
70
77
|
maxNpis: number
|
|
71
78
|
}
|
|
72
79
|
|
|
73
80
|
/**
|
|
74
|
-
* The multi-state shape of {@linkcode NPPESSampleOptions}
|
|
81
|
+
* The multi-state shape of {@linkcode NPPESSampleOptions}, where one registry
|
|
82
|
+
* pass fills every state's bucket.
|
|
75
83
|
*/
|
|
76
84
|
export interface NPPESMultiSampleOptions {
|
|
77
85
|
registryPath: string
|
|
78
86
|
otherNamesPath: string
|
|
79
87
|
/**
|
|
80
|
-
* Already upper-cased
|
|
88
|
+
* Already upper-cased.
|
|
89
|
+
* Compared against the practice-location state column.
|
|
81
90
|
*/
|
|
82
91
|
states: readonly string[]
|
|
83
92
|
maxNpisPerState: number
|
|
@@ -86,9 +95,11 @@ export interface NPPESMultiSampleOptions {
|
|
|
86
95
|
/**
|
|
87
96
|
* Build the benchmark's input records from the real registry, one bucket per requested state.
|
|
88
97
|
*
|
|
89
|
-
* Two passes
|
|
90
|
-
*
|
|
91
|
-
*
|
|
98
|
+
* Two passes read the two files.
|
|
99
|
+
* The second pass cannot break early because the address-frequency table needs
|
|
100
|
+
* every registry row even after the sample is full.
|
|
101
|
+
*
|
|
102
|
+
* The per-bucket `keptNpis.size < maxNpisPerState` test bounds only the sample branch.
|
|
92
103
|
*/
|
|
93
104
|
export async function buildNPPESStateSamples(
|
|
94
105
|
options: NPPESMultiSampleOptions,
|
|
@@ -96,7 +107,6 @@ export async function buildNPPESStateSamples(
|
|
|
96
107
|
): Promise<{ byState: Map<string, NPPESStateSample>; addressFrequency: TermFrequencyTable }> {
|
|
97
108
|
const { registryPath, otherNamesPath, states, maxNpisPerState } = options
|
|
98
109
|
|
|
99
|
-
// --- Phase A: the variation set — NPIs that carry ≥1 alternate organization name. ---
|
|
100
110
|
report?.("[A] streaming other-names…")
|
|
101
111
|
const altNames = new Map<string, string[]>()
|
|
102
112
|
|
|
@@ -117,8 +127,8 @@ export async function buildNPPESStateSamples(
|
|
|
117
127
|
|
|
118
128
|
report?.(` ${altNames.size} NPIs with ≥1 alternate name`)
|
|
119
129
|
|
|
120
|
-
//
|
|
121
|
-
//
|
|
130
|
+
// One full registry pass builds the global address-frequency table and collects every state's sample.
|
|
131
|
+
// Each row contributes to the corpus-wide sharing structure, independent of the state sample.
|
|
122
132
|
report?.(`[B] full registry pass: address-frequency table + ${maxNpisPerState} × ${states.join("/")} sample…`)
|
|
123
133
|
|
|
124
134
|
const byState = new Map<string, NPPESStateSample>(
|
|
@@ -137,7 +147,6 @@ export async function buildNPPESStateSamples(
|
|
|
137
147
|
|
|
138
148
|
const practice = addr(r[C.pAddr]!, r[C.pCity]!, r[C.pState]!, r[C.pZip]!)
|
|
139
149
|
|
|
140
|
-
// Global address-frequency: count every practice address (one row ≈ one distinct NPI).
|
|
141
150
|
if (practice) {
|
|
142
151
|
const k = addressFrequencyKey(practice)
|
|
143
152
|
addrCounts.set(k, (addrCounts.get(k) ?? 0) + 1)
|
|
@@ -145,8 +154,7 @@ export async function buildNPPESStateSamples(
|
|
|
145
154
|
addrTotal++
|
|
146
155
|
}
|
|
147
156
|
|
|
148
|
-
//
|
|
149
|
-
// needs the full pass).
|
|
157
|
+
// No early break here, since the table needs the full pass.
|
|
150
158
|
const npi = norm(r[C.npi])
|
|
151
159
|
const bucket = byState.get(norm(r[C.pState]).toUpperCase())
|
|
152
160
|
|
|
@@ -165,20 +173,20 @@ export async function buildNPPESStateSamples(
|
|
|
165
173
|
const org = isOrg ? norm(r[C.orgLegal]) : ""
|
|
166
174
|
const auth = `${norm(r[C.authFirst])} ${norm(r[C.authLast])}`.trim()
|
|
167
175
|
|
|
168
|
-
//
|
|
169
|
-
//
|
|
170
|
-
//
|
|
171
|
-
// it only separates co-located DISTINCT providers whose sets are disjoint.
|
|
176
|
+
// The taxonomy-code set (up to 15 slots) is whitespace-joined and identical
|
|
177
|
+
// across the NPI's records by construction, so it never splits one entity.
|
|
178
|
+
// It only separates co-located distinct providers whose sets are disjoint.
|
|
172
179
|
const taxonomy = C.taxonomy
|
|
173
180
|
.map((col) => norm(r[col]))
|
|
174
181
|
.filter(isPresent)
|
|
175
182
|
.join(" ")
|
|
176
183
|
|
|
177
|
-
// Entity-level (site) truth
|
|
178
|
-
// "Is Organization Subpart"
|
|
179
|
-
// charged for correctly fusing one org's many subpart-NPIs at a site
|
|
180
|
-
// practice records stay
|
|
181
|
-
//
|
|
184
|
+
// Entity-level (site) truth is the same org and the same physical address.
|
|
185
|
+
// Subparts (NPPES "Is Organization Subpart" plus parent LBN/TIN) collapse to their parent,
|
|
186
|
+
// so the matcher is not charged for correctly fusing one org's many subpart-NPIs at a site.
|
|
187
|
+
// An NPI's mailing and practice records stay distinct sites.
|
|
188
|
+
// `orgKey` is the parent identity for a subpart, else the NPI,
|
|
189
|
+
// so independent orgs sharing an address stay distinct.
|
|
182
190
|
const isSubpart = norm(r[C.isSubpart]).toUpperCase() === "Y"
|
|
183
191
|
const parentKey = `${norm(r[C.parentLBN])}|${norm(r[C.parentTIN])}`.toLowerCase()
|
|
184
192
|
const orgKey = isSubpart && parentKey !== "|" ? `p:${parentKey}` : `n:${npi}`
|
|
@@ -193,22 +201,19 @@ export async function buildNPPESStateSamples(
|
|
|
193
201
|
keptTotal++
|
|
194
202
|
bucket.rows.push({ npi, name: primaryName, org, address: practice, auth, taxonomy, entityID: eid(practice) })
|
|
195
203
|
|
|
196
|
-
// primary
|
|
197
204
|
for (const alt of altNames.get(npi)!) {
|
|
198
205
|
bucket.rows.push({ npi, name: alt, org: alt, address: practice, auth, taxonomy, entityID: eid(practice) })
|
|
199
206
|
}
|
|
200
207
|
|
|
201
|
-
// name drift
|
|
202
208
|
const mailing = addr(r[C.mAddr]!, r[C.mCity]!, r[C.mState]!, r[C.mZip]!)
|
|
203
209
|
|
|
204
210
|
if (mailing && mailing !== practice) {
|
|
205
211
|
bucket.rows.push({ npi, name: primaryName, org, address: mailing, auth, taxonomy, entityID: eid(mailing) })
|
|
206
|
-
}
|
|
212
|
+
}
|
|
207
213
|
}
|
|
208
214
|
}
|
|
209
215
|
}
|
|
210
216
|
|
|
211
|
-
// Corpus-wide address-frequency table — the inverse-frequency signal (#617 fix per the DeepSeek consult).
|
|
212
217
|
const addressFrequency: TermFrequencyTable = {
|
|
213
218
|
total: addrTotal,
|
|
214
219
|
distinct: addrCounts.size,
|
|
@@ -225,7 +230,7 @@ export async function buildNPPESStateSamples(
|
|
|
225
230
|
}
|
|
226
231
|
|
|
227
232
|
/**
|
|
228
|
-
* Build one state's benchmark input records
|
|
233
|
+
* Build one state's benchmark input records using {@linkcode buildNPPESStateSamples} with a single bucket.
|
|
229
234
|
*/
|
|
230
235
|
export async function buildNPPESSample(
|
|
231
236
|
options: NPPESSampleOptions,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @license AGPL-3.0
|
|
4
4
|
* @author Teffen Ellis, et al.
|
|
5
5
|
* @file Pairwise cluster scoring for the NPPES benchmark — precision/recall/F1 and adjusted Rand of recovered clusters
|
|
6
|
-
* against a truth
|
|
6
|
+
* against a truth labeling, plus the over-merge / under-merge shape counts.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import type { ResolvedEntity, SourceRecord } from "#index"
|
|
@@ -14,7 +14,7 @@ import type { ResolvedEntity, SourceRecord } from "#index"
|
|
|
14
14
|
export const choose2 = (n: number): number => (n * (n - 1)) / 2
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
|
-
* One clustering scored against one truth
|
|
17
|
+
* One clustering scored against one truth labeling.
|
|
18
18
|
*/
|
|
19
19
|
export interface Score {
|
|
20
20
|
precision: number
|
|
@@ -30,11 +30,12 @@ export interface Score {
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
|
-
* Score recovered clusters against a truth
|
|
33
|
+
* Score recovered clusters against a truth labeling.
|
|
34
34
|
*
|
|
35
|
-
* Pairwise
|
|
36
|
-
*
|
|
37
|
-
*
|
|
35
|
+
* Pairwise rather than set-matching: a true pair is two records carrying the same `labelOf`,
|
|
36
|
+
* a predicted pair is two records in the same entity.
|
|
37
|
+
* `totalRecords` is the labeled population and only feeds the adjusted-Rand expectation,
|
|
38
|
+
* so it must be the whole record set rather than the clustered subset — a smaller value inflates ARI.
|
|
38
39
|
*/
|
|
39
40
|
export function scoreEntities(
|
|
40
41
|
entities: readonly ResolvedEntity[],
|
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
* @copyright Sister Software
|
|
3
3
|
* @license AGPL-3.0
|
|
4
4
|
* @author Teffen Ellis, et al.
|
|
5
|
-
*
|
|
6
|
-
*
|
|
5
|
+
*
|
|
6
|
+
* The comparison-model setting progression the NPPES benchmark walks, where each row turns one
|
|
7
|
+
* setting on so its marginal effect is isolated.
|
|
7
8
|
*/
|
|
8
9
|
|
|
9
10
|
import type { TermFrequencyTable } from "@mailwoman/match"
|
|
@@ -32,11 +33,13 @@ export interface Setting {
|
|
|
32
33
|
/**
|
|
33
34
|
* Build the progression against a corpus-wide address-frequency table.
|
|
34
35
|
*
|
|
35
|
-
* Every row sets
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
36
|
+
* Every row sets both `collapseSpatial` and `addressFrequency` explicitly,
|
|
37
|
+
* because the proven settings are default-on in `resolveEntities`.
|
|
38
|
+
* Leave either implicit and the flipped default silently follows the inverse-address-frequency row.
|
|
39
|
+
* That makes the delta read as 0.
|
|
40
|
+
*
|
|
41
|
+
* Every row is fed the corpus-wide table, the realistic deployment, so the zero-config
|
|
42
|
+
* default with its input-scoped table has to be measured separately.
|
|
40
43
|
*/
|
|
41
44
|
export function buildSettings(addressFrequency: TermFrequencyTable): Setting[] {
|
|
42
45
|
return [
|
|
@@ -50,10 +53,8 @@ export function buildSettings(addressFrequency: TermFrequencyTable): Setting[] {
|
|
|
50
53
|
label: "+ authorized-official discriminator (#625)",
|
|
51
54
|
config: { collapseSpatial: true, addressFrequency, discriminators: ["authorizedOfficial"] },
|
|
52
55
|
},
|
|
53
|
-
//
|
|
54
|
-
//
|
|
55
|
-
// over-merge precision setting; A3 (phone) is the recall-tail corroborator that should keep A2 from
|
|
56
|
-
// killing name-drift links; A4 (average-linkage) splits a component joined only by a weak bridge.
|
|
56
|
+
// The over-merge settings each build on the collapsed-spatial and discriminator stack,
|
|
57
|
+
// so the marginal effect of each is isolated.
|
|
57
58
|
{
|
|
58
59
|
label: "+ require name/org corroboration (A2, #625)",
|
|
59
60
|
config: {
|
|
@@ -84,11 +85,10 @@ export function buildSettings(addressFrequency: TermFrequencyTable): Setting[] {
|
|
|
84
85
|
linkage: "average",
|
|
85
86
|
},
|
|
86
87
|
},
|
|
87
|
-
//
|
|
88
|
-
//
|
|
89
|
-
//
|
|
90
|
-
//
|
|
91
|
-
// authorized-official; A3 phone + A4 avg-linkage were measured neutral-to-negative and are left off).
|
|
88
|
+
// The taxonomy code-set discriminator uses set-overlap agreement over the NPI's 15 taxonomy slots.
|
|
89
|
+
// Co-located distinct providers usually have disjoint sets, while an entity's
|
|
90
|
+
// own records always share theirs.
|
|
91
|
+
// It is stacked on the best prior classical config.
|
|
92
92
|
{
|
|
93
93
|
label: "+ taxonomy code-set discriminator (A5, #625)",
|
|
94
94
|
config: {
|