From 0480d5a0fe9efc93fa86fdf8616732b26fe93eed Mon Sep 17 00:00:00 2001 From: kert Date: Thu, 12 Nov 2026 23:18:46 -0500 Subject: [PATCH] fix(market): seed links must quote the filing they cite; roster-cited orgs, pseudo-orgs, evidence-dated ticker windows, manifest --- src/cli/market.py | 57 ++++- src/market/edgar.py | 138 ++++++++++++- src/market/http.py | 39 ++++ src/market/seed.py | 30 +++ src/market/seed.yaml | 390 +++++++++++++++++++---------------- src/market/tables.py | 75 +++++-- tests/cli/test_market_cli.py | 127 +++++++++++- tests/market/test_edgar.py | 137 +++++++++++- tests/market/test_http.py | 31 +++ tests/market/test_seed.py | 87 ++++++++ tests/market/test_tables.py | 61 ++++++ 11 files changed, 961 insertions(+), 211 deletions(-) diff --git a/src/cli/market.py b/src/cli/market.py index 2950590..943709c 100644 --- a/src/cli/market.py +++ b/src/cli/market.py @@ -20,6 +20,8 @@ import typer from market import edgar, http from market.seed import ( SEAT_LABEL_KEYS, + SEED_PATH, + load_gaps, load_seed, seat_specialties, validate_seed, @@ -33,6 +35,7 @@ from market.tables import ( ensure_tables, read_gaps, retire_links, + retire_organizations, write_entities, write_filings, write_gap, @@ -113,6 +116,35 @@ def _counts(entities: list[EntityRow]) -> str: return ", ".join(f"{k}/{s or '-'} {n}" for (k, s), n in sorted(by.items())) +def _cited_filings( + cl: Any, + companies: Any, + staged: list[tuple[EntityRow, list[SecurityRow], list[FilingRow]]], + pacer: Any, + refresh: bool, + offline: bool, +) -> dict[tuple[str, str], str]: + """The normalized text of every filing the seed cites, hoarded.""" + primary = {(f.cik, f.adsh): f.primary_doc for _, _, fs in staged for f in fs} + texts: dict[tuple[str, str], str] = {} + for _, company, cite in edgar.filing_cites(companies): + key = (company.cik, cite.adsh) + if not cite.adsh or key in texts: + continue + text = edgar.fetch_filing( + cl, + company.cik, + cite.adsh, + primary.get(key, ""), + pacer=pacer, + refresh=refresh, + offline=offline, + ) + if text is not None: + texts[key] = text + return texts + + @app.command() def entities( sic_sweep: bool = typer.Option( @@ -193,6 +225,7 @@ def entities( filings, ) ) + texts = _cited_filings(cl, companies, staged, pacer, refresh, offline) except http.Refused as exc: _gap(ENTITIES_GAP, str(exc), write=write) return @@ -200,6 +233,12 @@ def entities( if cl is not None: cl.close() + quote_errors = edgar.quote_errors(companies, texts) + if quote_errors: + for e in quote_errors: + typer.echo(f"quote error: {e}") + raise typer.Exit(1) + org_rows = [edgar.org_entity(o) for o in orgs] all_entities = [e for e, _, _ in staged] + org_rows n_sec = sum(len(s) for _, s, _ in staged) @@ -230,6 +269,13 @@ def entities( from cms.ingest_log import log_ingest + tickers_file = str(http.newest(http.hoard("sec", "company_tickers.json"))) + sources = { + "market.entity": str(SEED_PATH), + "market.security": tickers_file, + "market.filing": str(http.hoard(http.MANIFEST)), + "market.entity_link": str(SEED_PATH), + } with _batch() as con: ensure_tables(con) write_entities(con, stored) @@ -240,14 +286,23 @@ def entities( write_links(con, sic_rows) write_links(con, curated) retired = retire_links(con, "curated", owners, keep) + retired += retire_organizations(con, [o.key for o in orgs]) clear_gap(con, ENTITIES_GAP) + for g in load_gaps(): + write_gap(con, g.source, g.note) for table, n in ( ("market.entity", len(stored)), ("market.security", n_sec), ("market.filing", n_fil), ("market.entity_link", len(curated) + len(sic_rows)), ): - log_ingest(con, module="market.edgar", table_name=table, rows=n) + log_ingest( + con, + module="market.edgar", + table_name=table, + rows=n, + source_file=sources[table], + ) _publish() typer.echo( f"stored: curated links {len(curated)} (retired {retired}), " diff --git a/src/market/edgar.py b/src/market/edgar.py index c63e10a..cf6c8a1 100644 --- a/src/market/edgar.py +++ b/src/market/edgar.py @@ -10,9 +10,11 @@ requests and every request carries the stack's contact in its User-Agent. from __future__ import annotations import datetime as dt +import html as _html import json +import re import xml.etree.ElementTree as ET -from collections.abc import Callable, Sequence +from collections.abc import Callable, Iterable, Iterator, Sequence from pathlib import Path from typing import Any @@ -175,6 +177,7 @@ def org_entity(org: SeedOrg) -> EntityRow: org_type=org.org_type, aliases="|".join(org.aliases), source_url=org.cite.url, + pseudo=org.pseudo, ) @@ -308,13 +311,16 @@ def _fetch( tolerated 404 is ``None`` and is not stored.""" have = http.newest(path) if have.is_file() and (offline or not refresh): + http.manifest(have, url) return have.read_bytes() if offline or cl is None: return None r = http.get(cl, url, pacer=pacer, source=SOURCE, ok_404=ok_404) if r.status_code == 404: return None - return http.save(path, r.content).read_bytes() + saved = http.save(path, r.content) + http.manifest(saved, url) + return saved.read_bytes() def fetch_tickers(cl, *, pacer, refresh=False, offline=False) -> dict[str, list[str]]: @@ -365,3 +371,131 @@ def fetch_sic_ciks(cl, sic: str, *, pacer, refresh=False, offline=False) -> list break start += PAGE return list(dict.fromkeys(out)) + + +# ── filings and their quotes ───────────────────────────────────────── + +_HIDDEN = re.compile(r"<(ix:header|script|style)\b.*?|", re.S | re.I) +_BLOCK = re.compile( + r"]*>", re.I +) +_TAG = re.compile(r"<[^>]+>") +_ASCII = str.maketrans( + { + "\u2018": "'", + "\u2019": "'", + "\u201c": '"', + "\u201d": '"', + "\u2010": "-", + "\u2011": "-", + "\u2012": "-", + "\u2013": "-", + "\u2014": "-", + "\u2212": "-", + "\u00a0": " ", + "\u2009": " ", + "\u200b": "", + } +) + + +def normalize_text(markup: str) -> str: + """Filing text as one line: markup, hidden XBRL, scripts and comments + dropped; entities decoded; curly quotes and dashes made ASCII; runs of + white space collapsed. Quotes and filings are compared in this form.""" + t = _HIDDEN.sub(" ", markup) + t = _BLOCK.sub(" ", t) + t = _TAG.sub("", t) + t = _html.unescape(t).translate(_ASCII) + return " ".join(t.split()) + + +def quote_in(text: str, quote: str) -> bool: + """*quote* occurs verbatim in the normalized filing *text*.""" + q = normalize_text(quote) + return bool(q) and q in text + + +def filing_url(cik: str, adsh: str, primary_doc: str) -> str: + return ( + f"https://www.sec.gov/Archives/edgar/data/{int(cik)}/" + f"{adsh.replace('-', '')}/{primary_doc}" + ) + + +def fetch_filing( + cl: httpx.Client | None, + cik: str, + adsh: str, + primary_doc: str, + *, + pacer: http.Pacer, + refresh: bool = False, + offline: bool = False, +) -> str | None: + """The normalized text of one filing's primary document, hoarded at + ``data/market/sec/filings//.htm``. ``None`` when it is neither + hoarded nor fetchable (offline, no primary document, or a 404).""" + path = http.hoard("sec", "filings", cik, f"{adsh}.htm") + url = ( + filing_url(cik, adsh, primary_doc) + if primary_doc + else ARCHIVE_INDEX.format(cik=int(cik), nodash=adsh.replace("-", ""), adsh=adsh) + ) + body = _fetch( + cl if primary_doc else None, + url, + path, + pacer=pacer, + refresh=refresh, + offline=offline, + ok_404=True, + ) + return normalize_text(body.decode("utf-8", errors="replace")) if body else None + + +def filing_cites( + companies: Sequence[SeedCompany], +) -> Iterator[tuple[str, SeedCompany, Cite]]: + """Every SEC-filing citation of the seed: ``(who, company, cite)``.""" + for c in companies: + yield c.handle, c, c.cite + for link in c.links: + yield f"{c.handle}/{link.scope}:{link.target}", c, link.cite + for sec in c.securities: + for cite in (sec.cite, sec.cite_to): + if cite: + yield f"{c.handle}/{sec.ticker}", c, cite + + +def quote_errors( + companies: Sequence[SeedCompany], texts: dict[tuple[str, str], str] +) -> list[str]: + """Citations whose filing is not hoarded or does not contain the quote.""" + errors = [] + for who, company, cite in filing_cites(companies): + if not cite.adsh: + continue + text = texts.get((company.cik, cite.adsh)) + if text is None: + errors.append(f"{who}: filing {cite.adsh} not hoarded") + elif not quote_in(text, cite.quote): + errors.append(f"{who}: quote not found in {cite.adsh}") + return errors + + +_WORD = re.compile(r"[a-z0-9]+") + + +def shares_ama_run(text: str, descriptors: Iterable[str], n: int = 8) -> bool: + """D3 guard: *text* shares a run of *n* words with any licensed CPT + descriptor (same tokenization as ``pfs.origin.shares_run``).""" + words = _WORD.findall(text.lower()) + grams = {tuple(words[i : i + n]) for i in range(len(words) - n + 1)} + if not grams: + return False + for d in descriptors: + w = _WORD.findall(d.lower()) + if any(tuple(w[i : i + n]) in grams for i in range(len(w) - n + 1)): + return True + return False diff --git a/src/market/http.py b/src/market/http.py index 87135cc..904a847 100644 --- a/src/market/http.py +++ b/src/market/http.py @@ -7,7 +7,9 @@ Keys never reach a URL, a cache path, a log line or an exception message. from __future__ import annotations +import datetime as _dt import hashlib +import json import re import time from collections.abc import Callable, Mapping @@ -164,3 +166,40 @@ def slug(text: str) -> str: if len(base) <= 60: return base return f"{base[:60]}-{hashlib.sha256(text.encode()).hexdigest()[:8]}" + + +_MANIFESTS: dict[Path, set[tuple[str, str]]] = {} +MANIFEST = "MANIFEST.jsonl" + + +def manifest(path: Path, url: str) -> None: + """Append one line to ``data/market/MANIFEST.jsonl`` for the hoarded file + *path* (url, path relative to the hoard, sha256, bytes, fetched_at), + once per distinct ``(path, sha256)``.""" + root = hoard_root() + mf = root / MANIFEST + body = path.read_bytes() + sha = hashlib.sha256(body).hexdigest() + rel = path.relative_to(root).as_posix() + seen = _MANIFESTS.get(mf) + if seen is None: + seen = set() + if mf.exists(): + for line in mf.read_text().splitlines(): + rec = json.loads(line) + seen.add((rec["path"], rec["sha256"])) + _MANIFESTS[mf] = seen + if (rel, sha) in seen: + return + fetched = _dt.datetime.fromtimestamp(path.stat().st_mtime, _dt.timezone.utc) + rec = { + "url": url, + "path": rel, + "sha256": sha, + "bytes": len(body), + "fetched_at": fetched.isoformat(timespec="seconds"), + } + mf.parent.mkdir(parents=True, exist_ok=True) + with mf.open("a") as fh: + fh.write(json.dumps(rec) + "\n") + seen.add((rel, sha)) diff --git a/src/market/seed.py b/src/market/seed.py index 6bec51e..834f0d5 100644 --- a/src/market/seed.py +++ b/src/market/seed.py @@ -66,6 +66,10 @@ class SeedSecurity: exchange: str valid_from: date | None = None valid_to: date | None = None + #: the filing that dates ``valid_from`` (a prospectus, merger 8-K, ...) + cite: Cite | None = None + #: the filing that dates ``valid_to`` (a merger or delisting 8-K, ...) + cite_to: Cite | None = None @dataclass(frozen=True) @@ -100,6 +104,17 @@ class SeedOrg: fec_committee_ids: tuple[str, ...] links: tuple[SeedLink, ...] cite: Cite + #: a stand-in for a seat held by rotating or unnamed societies; skipped + #: by lobbying and campaign-finance name matching + pseudo: bool = False + + +@dataclass(frozen=True) +class SeedGap: + """A source the seed could not read (recorded as a ``source_gap``).""" + + source: str + note: str # ── loading ────────────────────────────────────────────────────────── @@ -113,6 +128,8 @@ def _cite(raw: Any, who: str) -> Cite: raise ValueError(f"{who}: no citation (need exactly one locator)") if len(c.quote) > 400: raise ValueError(f"{who}: quote over 400 characters") + if c.adsh and not c.quote: + raise ValueError(f"{who}: a filing citation needs a quote") return c @@ -147,6 +164,10 @@ def _company(raw: Mapping[str, Any]) -> SeedCompany: str(s.get("exchange", "")), s.get("valid_from"), s.get("valid_to"), + _cite(s["cite"], f"{handle}/{s['ticker']}") if s.get("cite") else None, + _cite(s["cite_to"], f"{handle}/{s['ticker']}") + if s.get("cite_to") + else None, ) for s in raw.get("securities") or () ), @@ -169,6 +190,15 @@ def _org(raw: Mapping[str, Any]) -> SeedOrg: fec_committee_ids=tuple(str(x) for x in raw.get("fec_committee_ids") or ()), links=_links(raw.get("links"), key), cite=_cite(raw.get("cite"), key), + pseudo=bool(raw.get("pseudo", False)), + ) + + +def load_gaps(path: Path | str | None = None) -> tuple[SeedGap, ...]: + """Sources the seed records as unreadable (``gaps:`` in the YAML).""" + raw = yaml.safe_load(Path(path or SEED_PATH).read_text()) or {} + return tuple( + SeedGap(str(g["source"]), str(g["note"])) for g in raw.get("gaps") or () ) diff --git a/src/market/seed.yaml b/src/market/seed.yaml index 0d7826f..6406ada 100644 --- a/src/market/seed.yaml +++ b/src/market/seed.yaml @@ -1,9 +1,9 @@ # Curated seed: companies exposed to CMS fee-schedule changes and the -# organizations behind RUC seats. Every entry and every link carries one -# citation (an SEC accession number or a URL). Link targets are checked -# against the live family / specialty / program vocabularies by `stack market -# entities`. Public companies and public bodies only (see market.seed.EXCLUDED). -# Company-to-target links are the maintainer's reading of the cited 10-K. +# organizations behind RUC seats. Every filing citation carries a verbatim quote +# (<= 400 chars) that `stack market entities` checks against the hoarded filing. +# Specialty societies cite the saved AMA RUC roster (bib item); trade groups cite +# their own site. Company-to-target links exist only where the cited filing +# supports them. Public companies and public bodies only (see seed.EXCLUDED). companies: - handle: OSH @@ -13,26 +13,25 @@ companies: ended_on: 2023-05-02 successor_cik: "0000064803" aliases: ["OAK STREET HEALTH"] - securities: [{ticker: OSH, exchange: NYSE, valid_from: 2020-08-06, valid_to: 2023-05-02}] - cite: {adsh: "0001564406-23-000019", title: "Oak Street Health, Inc. Form 10-K filed 2023-02-28", accessed: "2026-11-12"} + securities: + - {ticker: OSH, exchange: NYSE, valid_from: 2020-08-06, valid_to: 2023-05-02, cite: {adsh: "0001564406-23-000019", title: "Oak Street Health, Inc. Form 10-K filed 2023-02-28", quote: "Market for Registrant's Common Equity, Related Stockholder Matters and Issuer Purchases of Equity Securities Securities Market Information Our common stock has been listed on the NYSE under the symbol \"OSH\" since August 6, 2020.", accessed: "2026-11-12"}, cite_to: {adsh: "0001193125-23-132570", title: "Oak Street Health, Inc. Form 8-K filed 2023-05-02", quote: "On May 2, 2023 (the \"Closing Date\"), pursuant to the Merger Agreement, Merger Sub merged with and into Oak Street Health (the \"Merger\"), with Oak Street Health surviving the Merger as an indirect wholly-owned subsidiary of Parent.", accessed: "2026-11-12"}} + cite: {adsh: "0001193125-23-132570", title: "Oak Street Health, Inc. Form 8-K filed 2023-05-02", quote: "On May 2, 2023 (the \"Closing Date\"), pursuant to the Merger Agreement, Merger Sub merged with and into Oak Street Health (the \"Merger\"), with Oak Street Health surviving the Merger as an indirect wholly-owned subsidiary of Parent.", accessed: "2026-11-12"} links: - - {scope: program, target: "APM", cite: {adsh: "0001564406-23-000019", title: "Oak Street Health, Inc. Form 10-K filed 2023-02-28", accessed: "2026-11-12"}} - - {scope: program, target: "PFS", cite: {adsh: "0001564406-23-000019", title: "Oak Street Health, Inc. Form 10-K filed 2023-02-28", accessed: "2026-11-12"}} - - {scope: specialty, target: "PRIMARY CARE", cite: {adsh: "0001564406-23-000019", title: "Oak Street Health, Inc. Form 10-K filed 2023-02-28", accessed: "2026-11-12"}} - - {scope: family, target: "CCM", cite: {adsh: "0001564406-23-000019", title: "Oak Street Health, Inc. Form 10-K filed 2023-02-28", accessed: "2026-11-12"}} + - {scope: program, target: "APM", cite: {adsh: "0001564406-23-000019", title: "Oak Street Health, Inc. Form 10-K filed 2023-02-28", quote: "Additionally, the Center for Medicare and Medicaid Innovation (\"CMMI\") launched the Global and Professional Direct Contracting (\"GPDC\") Model (the \"Direct Contracting Model\") as of April 2021 to create value-based payment arrangements directly with provider groups for their current Medicare fee-for-service patients similar to the value-based contracts that we enter into with our MA partners.", accessed: "2026-11-12"}} + - {scope: specialty, target: "PRIMARY CARE", cite: {adsh: "0001564406-23-000019", title: "Oak Street Health, Inc. Form 10-K filed 2023-02-28", quote: "Mission Since our founding in 2012, our mission has been to build a care delivery platform, built on a chassis of primary care that directly addresses rising costs and poor outcomes, two of the most pressing challenges facing the United States healthcare system.", accessed: "2026-11-12"}} - handle: SGFY name: "Signify Health, Inc." cik: "0001828182" status: acquired - ended_on: 2023-04-03 + ended_on: 2023-03-29 successor_cik: "0000064803" aliases: ["SIGNIFY HEALTH"] - securities: [{ticker: SGFY, exchange: NASDAQ, valid_from: 2021-02-11, valid_to: 2023-04-03}] - cite: {adsh: "0001828182-23-000004", title: "Signify Health, Inc. Form 10-K filed 2023-02-27", accessed: "2026-11-12"} + securities: + - {ticker: SGFY, exchange: NASDAQ, valid_to: 2023-03-29, cite_to: {adsh: "0001193125-23-082993", title: "Signify Health, Inc. Form 8-K filed 2023-03-29", quote: "On March 29, 2023, the Company completed its merger with Merger Subsidiary pursuant to the terms of the Merger Agreement, whereby Merger Subsidiary merged with and into the Company, with the Company continuing as the surviving corporation (the \"Surviving Corporation\") and as a wholly owned subsidiary of Parent (the \"Merger\").", accessed: "2026-11-12"}} + cite: {adsh: "0001193125-23-082993", title: "Signify Health, Inc. Form 8-K filed 2023-03-29", quote: "On March 29, 2023, the Company completed its merger with Merger Subsidiary pursuant to the terms of the Merger Agreement, whereby Merger Subsidiary merged with and into the Company, with the Company continuing as the surviving corporation (the \"Surviving Corporation\") and as a wholly owned subsidiary of Parent (the \"Merger\").", accessed: "2026-11-12"} links: - - {scope: program, target: "HOME-BASED-CARE", cite: {adsh: "0001828182-23-000004", title: "Signify Health, Inc. Form 10-K filed 2023-02-27", accessed: "2026-11-12"}} - - {scope: program, target: "MSSP", cite: {adsh: "0001828182-23-000004", title: "Signify Health, Inc. Form 10-K filed 2023-02-27", accessed: "2026-11-12"}} - - {scope: family, target: "HOME-VISITS", cite: {adsh: "0001828182-23-000004", title: "Signify Health, Inc. Form 10-K filed 2023-02-27", accessed: "2026-11-12"}} + - {scope: program, target: "HOME-BASED-CARE", cite: {adsh: "0001828182-23-000004", title: "Signify Health, Inc. Form 10-K filed 2023-02-27", quote: "Management's Discussion and Analysis of Financial Condition and Results of Operations-Recent Developments and Factors Affecting Our Results of Operations.\" Our Solutions In-home health evaluations and related services We have a large mobile network of credentialed providers in the United States, which we deploy into the home primarily to conduct IHEs and to perform select diagnostic services.", accessed: "2026-11-12"}} + - {scope: program, target: "MSSP", cite: {adsh: "0001828182-23-000004", title: "Signify Health, Inc. Form 10-K filed 2023-02-27", quote: "Signify, through its Caravan subsidiary which was acquired in March 2022, is the owner of, and/or provider of management services to, a number of accountable care organizations (\"ACOs\") that participate in the Medicare Shared Savings Program (\"MSSP\") and a similar arrangement with a commercial payor.", accessed: "2026-11-12"}} - handle: AMED name: "AMEDISYS INC" cik: "0000896262" @@ -40,11 +39,11 @@ companies: ended_on: 2025-08-14 successor_cik: "0000731766" aliases: ["AMEDISYS"] - securities: [{ticker: AMED, exchange: NASDAQ, valid_from: 1994-08-18, valid_to: 2025-08-14}] - cite: {adsh: "0000896262-25-000018", title: "AMEDISYS INC Form 10-K filed 2025-02-27", accessed: "2026-11-12"} + securities: + - {ticker: AMED, exchange: NASDAQ, valid_to: 2025-08-14, cite_to: {adsh: "0001104659-25-078145", title: "AMEDISYS INC Form 8-K filed 2025-08-14", quote: "This Current Report on Form 8-K is being filed in connection with the closing on August 14, 2025 (the \"Effective Time\") of the merger (the \"Merger\") of Amedisys, Inc., a Delaware corporation (the \"Company\" or \"Amedisys\"), and Aurora Holdings Merger Sub Inc.", accessed: "2026-11-12"}} + cite: {adsh: "0001104659-25-078145", title: "AMEDISYS INC Form 8-K filed 2025-08-14", quote: "This Current Report on Form 8-K is being filed in connection with the closing on August 14, 2025 (the \"Effective Time\") of the merger (the \"Merger\") of Amedisys, Inc., a Delaware corporation (the \"Company\" or \"Amedisys\"), and Aurora Holdings Merger Sub Inc.", accessed: "2026-11-12"} links: - - {scope: program, target: "HOME-BASED-CARE", cite: {adsh: "0000896262-25-000018", title: "AMEDISYS INC Form 10-K filed 2025-02-27", accessed: "2026-11-12"}} - - {scope: family, target: "HOME-VISITS", cite: {adsh: "0000896262-25-000018", title: "AMEDISYS INC Form 10-K filed 2025-02-27", accessed: "2026-11-12"}} + - {scope: program, target: "HOME-BASED-CARE", cite: {adsh: "0000896262-25-000018", title: "AMEDISYS INC Form 10-K filed 2025-02-27", quote: "Our home health segment delivers a wide range of services in the homes of individuals who may be recovering from an illness, injury or surgery.", accessed: "2026-11-12"}} - handle: LHCG name: "LHC Group, Inc" cik: "0001303313" @@ -52,10 +51,11 @@ companies: ended_on: 2023-02-22 successor_cik: "0000731766" aliases: ["LHC GROUP"] - securities: [{ticker: LHCG, exchange: NASDAQ, valid_from: 2005-06-09, valid_to: 2023-02-22}] - cite: {adsh: "0001303313-23-000020", title: "LHC Group, Inc Form 10-K filed 2023-02-22", accessed: "2026-11-12"} + securities: + - {ticker: LHCG, exchange: NASDAQ, valid_to: 2023-02-22, cite_to: {adsh: "0000950170-23-003585", title: "LHC Group, Inc Form 8-K filed 2023-02-22", quote: "share LHCG NASDAQ Global Select Market INTRODUCTORY NOTE This Current Report on Form 8-K is being filed in connection with the closing on February 22, 2023 (the \"Effective Time\") of the merger (the \"Merger\") of LHC Group, Inc., a Delaware corporation (the \"Company\" or \"LHC Group\"), and Lightning Merger Sub", accessed: "2026-11-12"}} + cite: {adsh: "0000950170-23-003585", title: "LHC Group, Inc Form 8-K filed 2023-02-22", quote: "share LHCG NASDAQ Global Select Market INTRODUCTORY NOTE This Current Report on Form 8-K is being filed in connection with the closing on February 22, 2023 (the \"Effective Time\") of the merger (the \"Merger\") of LHC Group, Inc., a Delaware corporation (the \"Company\" or \"LHC Group\"), and Lightning Merger Sub", accessed: "2026-11-12"} links: - - {scope: program, target: "HOME-BASED-CARE", cite: {adsh: "0001303313-23-000020", title: "LHC Group, Inc Form 10-K filed 2023-02-22", accessed: "2026-11-12"}} + - {scope: program, target: "HOME-BASED-CARE", cite: {adsh: "0001303313-23-000020", title: "LHC Group, Inc Form 10-K filed 2023-02-22", quote: "Our home health service locations offer a wide range of services, including skilled nursing, medically-oriented social services and physical, occupational, and speech therapy.", accessed: "2026-11-12"}} - handle: ONEM name: "1Life Healthcare Inc" cik: "0001404123" @@ -63,294 +63,312 @@ companies: ended_on: 2023-02-22 successor_cik: "0001018724" aliases: ["1LIFE HEALTHCARE", "ONE MEDICAL"] - securities: [{ticker: ONEM, exchange: NASDAQ, valid_from: 2020-01-31, valid_to: 2023-02-22}] - cite: {adsh: "0001404123-23-000016", title: "1Life Healthcare Inc Form 10-K filed 2023-02-22", accessed: "2026-11-12"} + securities: + - {ticker: ONEM, exchange: NASDAQ, valid_from: 2020-01-31, valid_to: 2023-02-22, cite: {adsh: "0001404123-23-000016", title: "1Life Healthcare Inc Form 10-K filed 2023-02-22", quote: "Market Information Our common stock has been listed on the Nasdaq Global Select Market under the symbol \"ONEM\" since January 31, 2020.", accessed: "2026-11-12"}, cite_to: {adsh: "0001193125-23-044883", title: "1Life Healthcare Inc Form 8-K filed 2023-02-22", quote: "On February 22, 2023, the Company completed its merger with Merger Sub pursuant to the terms of the Merger Agreement, whereby Merger Sub merged with and into the Company, in accordance with the General Corporation Law of the State of Delaware (the \"DGCL\"), with the Company continuing as the surviving corporation (the \"Surviving Corporation\") and as an indirect wholly owned subsidiary of", accessed: "2026-11-12"}} + cite: {adsh: "0001193125-23-044883", title: "1Life Healthcare Inc Form 8-K filed 2023-02-22", quote: "On February 22, 2023, the Company completed its merger with Merger Sub pursuant to the terms of the Merger Agreement, whereby Merger Sub merged with and into the Company, in accordance with the General Corporation Law of the State of Delaware (the \"DGCL\"), with the Company continuing as the surviving corporation (the \"Surviving Corporation\") and as an indirect wholly owned subsidiary of", accessed: "2026-11-12"} links: - - {scope: program, target: "PFS", cite: {adsh: "0001404123-23-000016", title: "1Life Healthcare Inc Form 10-K filed 2023-02-22", accessed: "2026-11-12"}} - - {scope: program, target: "TELEHEALTH", cite: {adsh: "0001404123-23-000016", title: "1Life Healthcare Inc Form 10-K filed 2023-02-22", accessed: "2026-11-12"}} - - {scope: specialty, target: "PRIMARY CARE", cite: {adsh: "0001404123-23-000016", title: "1Life Healthcare Inc Form 10-K filed 2023-02-22", accessed: "2026-11-12"}} + - {scope: program, target: "TELEHEALTH", cite: {adsh: "0001404123-23-000016", title: "1Life Healthcare Inc Form 10-K filed 2023-02-22", quote: "In particular, in light of the COVID-19 pandemic, existing or new competitors have developed or further invested in telemedicine and remote medicine programs and ventures, which would compete with our virtual care offerings.", accessed: "2026-11-12"}} + - {scope: specialty, target: "PRIMARY CARE", cite: {adsh: "0001404123-23-000016", title: "1Life Healthcare Inc Form 10-K filed 2023-02-22", quote: "We are a membership-based primary care platform with seamless digital health and inviting in-office care, convenient to where people work, shop, live, and click.", accessed: "2026-11-12"}} - handle: AGL name: "agilon health, inc." cik: "0001831097" status: listed aliases: ["AGILON HEALTH"] - securities: [{ticker: AGL, exchange: NYSE, valid_from: 2021-04-15}] - cite: {adsh: "0001628280-26-011655", title: "agilon health, inc. Form 10-K filed 2026-02-25", accessed: "2026-11-12"} + securities: + - {ticker: AGL, exchange: NYSE, valid_from: 2021-04-15, cite: {adsh: "0001628280-26-011655", title: "agilon health, inc. Form 10-K filed 2026-02-25", quote: "Market for Registrant's Common Equity, Related Stockholder Matters and Issuer Purchases of Equity Securities Market Information for Common Stock Our common stock, par value $0.01 per share, is listed on the New York Stock Exchange under the symbol \"AGL\" and began trading on April 15, 2021.", accessed: "2026-11-12"}} + cite: {adsh: "0001628280-26-011655", title: "agilon health, inc. Form 10-K filed 2026-02-25", quote: "CMS ACO Models agilon, in conjunction with some of our physician partners, participates in the ACO REACH Model and MSSP in certain geographies, through nine approved ACOs.", accessed: "2026-11-12"} links: - - {scope: program, target: "MSSP", cite: {adsh: "0001628280-26-011655", title: "agilon health, inc. Form 10-K filed 2026-02-25", accessed: "2026-11-12"}} - - {scope: program, target: "APM", cite: {adsh: "0001628280-26-011655", title: "agilon health, inc. Form 10-K filed 2026-02-25", accessed: "2026-11-12"}} - - {scope: specialty, target: "PRIMARY CARE", cite: {adsh: "0001628280-26-011655", title: "agilon health, inc. Form 10-K filed 2026-02-25", accessed: "2026-11-12"}} + - {scope: program, target: "MSSP", cite: {adsh: "0001628280-26-011655", title: "agilon health, inc. Form 10-K filed 2026-02-25", quote: "CMS ACO Models agilon, in conjunction with some of our physician partners, participates in the ACO REACH Model and MSSP in certain geographies, through nine approved ACOs.", accessed: "2026-11-12"}} + - {scope: program, target: "APM", cite: {adsh: "0001628280-26-011655", title: "agilon health, inc. Form 10-K filed 2026-02-25", quote: "nine Accountable Care Organizations (\"ACOs\") through our participation in the Centers for Medicare & Medicaid Services' (\"CMS\") Accountable Care Organization Realizing Equity, Access, and Community Health (\"ACO REACH\") Model and Medicare Shared Savings Program (\"MSSP,\" and together with ACO REACH, the \"CMS ACO Models\") through its equity method", accessed: "2026-11-12"}} + - {scope: specialty, target: "PRIMARY CARE", cite: {adsh: "0001628280-26-011655", title: "agilon health, inc. Form 10-K filed 2026-02-25", quote: "Business Overview Our business is transforming healthcare by empowering the primary care physicians (\"PCP\") to be the agents for change in the communities they serve.", accessed: "2026-11-12"}} - handle: PRVA name: "Privia Health Group, Inc." cik: "0001759655" status: listed aliases: ["PRIVIA HEALTH GROUP"] - securities: [{ticker: PRVA, exchange: NASDAQ, valid_from: 2021-04-28}] - cite: {adsh: "0001759655-26-000010", title: "Privia Health Group, Inc. Form 10-K filed 2026-02-27", accessed: "2026-11-12"} + securities: + - {ticker: PRVA, exchange: NASDAQ, valid_from: 2021-04-29, cite: {adsh: "0001759655-26-000010", title: "Privia Health Group, Inc. Form 10-K filed 2026-02-27", quote: "MARKET FOR REGISTRANT'S COMMON EQUITY, RELATED STOCKHOLDER MATTERS AND ISSUER PURCHASES OF EQUITY SECURITIES Market Information Our common stock has been listed on the Nasdaq Global Select Market under the symbol \"PRVA\" since April 29, 2021.", accessed: "2026-11-12"}} + cite: {adsh: "0001759655-26-000010", title: "Privia Health Group, Inc. Form 10-K filed 2026-02-27", quote: "Revenue from the Medicare Shared Savings Program (MSSP) makes up the majority of the Company's consolidated shared savings revenue of $234.8 million for the year ended December 31, 2025.", accessed: "2026-11-12"} links: - - {scope: program, target: "MSSP", cite: {adsh: "0001759655-26-000010", title: "Privia Health Group, Inc. Form 10-K filed 2026-02-27", accessed: "2026-11-12"}} - - {scope: program, target: "APM", cite: {adsh: "0001759655-26-000010", title: "Privia Health Group, Inc. Form 10-K filed 2026-02-27", accessed: "2026-11-12"}} - - {scope: program, target: "PFS", cite: {adsh: "0001759655-26-000010", title: "Privia Health Group, Inc. Form 10-K filed 2026-02-27", accessed: "2026-11-12"}} - - {scope: specialty, target: "PRIMARY CARE", cite: {adsh: "0001759655-26-000010", title: "Privia Health Group, Inc. Form 10-K filed 2026-02-27", accessed: "2026-11-12"}} + - {scope: program, target: "MSSP", cite: {adsh: "0001759655-26-000010", title: "Privia Health Group, Inc. Form 10-K filed 2026-02-27", quote: "Revenue from the Medicare Shared Savings Program (MSSP) makes up the majority of the Company's consolidated shared savings revenue of $234.8 million for the year ended December 31, 2025.", accessed: "2026-11-12"}} + - {scope: program, target: "APM", cite: {adsh: "0001759655-26-000010", title: "Privia Health Group, Inc. Form 10-K filed 2026-02-27", quote: "CMS has developed several alternative payment models (\"APM\"s) that use VBC contract structure to incentivize cost-efficient and high-quality care for Medicare beneficiaries, including ACOs and bundled payment models.", accessed: "2026-11-12"}} + - {scope: program, target: "PFS", cite: {adsh: "0001759655-26-000010", title: "Privia Health Group, Inc. Form 10-K filed 2026-02-27", quote: "For example, CMS makes annual updates to its Medicare Physician Fee Schedule, including modifications to the Quality Payment Program.", accessed: "2026-11-12"}} + - {scope: specialty, target: "PRIMARY CARE", cite: {adsh: "0001759655-26-000010", title: "Privia Health Group, Inc. Form 10-K filed 2026-02-27", quote: "The Privia Platform and Business Model Single-TIN Medical Group: Generally, we establish a primary care centric single-TIN Medical Group in our markets that facilitates payer negotiation, clinical integration and alignment of financial incentives.", accessed: "2026-11-12"}} - handle: CANO name: "Cano Health, Inc." cik: "0001800682" status: bankrupt - ended_on: 2024-02-05 + ended_on: 2024-02-04 aliases: ["CANO HEALTH"] - securities: [{ticker: CANO, exchange: NYSE, valid_to: 2024-02-05}] - cite: {adsh: "0001628280-24-014114", title: "Cano Health, Inc. Form 10-K filed 2024-04-01", accessed: "2026-11-12"} + securities: + - {ticker: CANO, exchange: NYSE, valid_from: 2021-06-04, valid_to: 2024-02-05, cite: {adsh: "0001193125-21-186694", title: "Cano Health, Inc. Form 8-K filed 2021-06-09", quote: "The Company's common stock and warrants commenced trading on the NYSE under the symbols \"CANO\" and \"CANO WS,\" respectively, on June 4, 2021, subject to ongoing review of the Company's satisfaction of all listing criteria following the Business Combination.", accessed: "2026-11-12"}, cite_to: {adsh: "0001193125-24-024136", title: "Cano Health, Inc. Form 8-K filed 2024-02-05", quote: "Name of each exchange on which registered Class A common stock, $0.01 par value per share CANO* The New York Stock Exchange* * On February 5, 2024, the New York Stock Exchange determined to commence proceedings to delist and immediately suspended trading in Cano Health, Inc.'s Class A common stock, par value $0.01 per", accessed: "2026-11-12"}} + cite: {adsh: "0001193125-24-023512", title: "Cano Health, Inc. Form 8-K filed 2024-02-05", quote: "Item 1.03 Bankruptcy or Receivership Chapter 11 Filing On February 4, 2024, the Debtors commenced filing voluntary petitions (the \"Chapter 11 Cases\") in the U.S.", accessed: "2026-11-12"} links: - - {scope: program, target: "APM", cite: {adsh: "0001628280-24-014114", title: "Cano Health, Inc. Form 10-K filed 2024-04-01", accessed: "2026-11-12"}} - - {scope: specialty, target: "PRIMARY CARE", cite: {adsh: "0001628280-24-014114", title: "Cano Health, Inc. Form 10-K filed 2024-04-01", accessed: "2026-11-12"}} + - {scope: program, target: "APM", cite: {adsh: "0001628280-24-014114", title: "Cano Health, Inc. Form 10-K filed 2024-04-01", quote: "all other nonessential spending; (b) shifting our strategic direction, including the following measures, among others: (i) focusing our membership base towards Medicare Advantage and ACO Realizing Equity, Access, and Community Health (\"ACO REACH\") and Medicare patients under Accountable Care Organizations (\"ACO\") and improving patient engagement; (ii) selling certain assets and", accessed: "2026-11-12"}} + - {scope: specialty, target: "PRIMARY CARE", cite: {adsh: "0001628280-24-014114", title: "Cano Health, Inc. Form 10-K filed 2024-04-01", quote: "We are a primary care and patient-focused value-based care organization designed with a focus on improved clinical outcomes.", accessed: "2026-11-12"}} - handle: ALHC name: "Alignment Healthcare, Inc." cik: "0001832466" status: listed aliases: ["ALIGNMENT HEALTHCARE"] - securities: [{ticker: ALHC, exchange: NASDAQ}] - cite: {adsh: "0001628280-26-012545", title: "Alignment Healthcare, Inc. Form 10-K filed 2026-02-27", accessed: "2026-11-12"} + securities: + - {ticker: ALHC, exchange: NASDAQ} + cite: {adsh: "0001628280-26-012545", title: "Alignment Healthcare, Inc. Form 10-K filed 2026-02-27 (participation ended 2025-12-31)", quote: "We discontinued our participation in the ACO REACH model as of December 31, 2025.", accessed: "2026-11-12"} links: - - {scope: program, target: "APM", cite: {adsh: "0001628280-26-012545", title: "Alignment Healthcare, Inc. Form 10-K filed 2026-02-27", accessed: "2026-11-12"}} - - {scope: specialty, target: "PRIMARY CARE", cite: {adsh: "0001628280-26-012545", title: "Alignment Healthcare, Inc. Form 10-K filed 2026-02-27", accessed: "2026-11-12"}} + - {scope: program, target: "APM", cite: {adsh: "0001628280-26-012545", title: "Alignment Healthcare, Inc. Form 10-K filed 2026-02-27 (participation ended 2025-12-31)", quote: "We discontinued our participation in the ACO REACH model as of December 31, 2025.", accessed: "2026-11-12"}} + - {scope: specialty, target: "PRIMARY CARE", cite: {adsh: "0001628280-26-012545", title: "Alignment Healthcare, Inc. Form 10-K filed 2026-02-27", quote: "In some situations, we have capitation contracts with individual or groups of primary care providers and specialists for an actuarially determined, fixed fee per month to provide a basket of required medical services to our members.", accessed: "2026-11-12"}} - handle: CLOV name: "CLOVER HEALTH INVESTMENTS, CORP. /DE" cik: "0001801170" status: listed aliases: ["CLOVER HEALTH INVESTMENTS CORP DE"] - securities: [{ticker: CLOV, exchange: NASDAQ}] - cite: {adsh: "0001801170-26-000057", title: "CLOVER HEALTH INVESTMENTS, CORP. /DE Form 10-K filed 2026-02-27", accessed: "2026-11-12"} + securities: + - {ticker: CLOV, exchange: NASDAQ} + cite: {adsh: "0001801170-23-000015", title: "CLOVER HEALTH INVESTMENTS, CORP. /DE Form 10-K filed 2023-03-01 (ACO REACH participation through 2023)", quote: "Effective January 1, 2023, after the redesign of the DC Model to the ACO REACH Model, DCE is now known as the ACO.", accessed: "2026-11-12"} links: - - {scope: program, target: "APM", cite: {adsh: "0001801170-26-000057", title: "CLOVER HEALTH INVESTMENTS, CORP. /DE Form 10-K filed 2026-02-27", accessed: "2026-11-12"}} - - {scope: program, target: "CARE-MANAGEMENT", cite: {adsh: "0001801170-26-000057", title: "CLOVER HEALTH INVESTMENTS, CORP. /DE Form 10-K filed 2026-02-27", accessed: "2026-11-12"}} + - {scope: program, target: "APM", cite: {adsh: "0001801170-23-000015", title: "CLOVER HEALTH INVESTMENTS, CORP. /DE Form 10-K filed 2023-03-01 (ACO REACH participation through 2023)", quote: "Effective January 1, 2023, after the redesign of the DC Model to the ACO REACH Model, DCE is now known as the ACO.", accessed: "2026-11-12"}} + - {scope: program, target: "CARE-MANAGEMENT", cite: {adsh: "0001801170-26-000057", title: "CLOVER HEALTH INVESTMENTS, CORP. /DE Form 10-K filed 2026-02-27", quote: "This external offering aims to equip clinician users with the Company's already built, clinician-centric, and AI-powered care management platform.", accessed: "2026-11-12"}} - handle: EVH name: "Evolent Health, Inc." cik: "0001628908" status: listed aliases: ["EVOLENT HEALTH"] - securities: [{ticker: EVH, exchange: NYSE}] - cite: {adsh: "0001628908-26-000015", title: "Evolent Health, Inc. Form 10-K filed 2026-02-25", accessed: "2026-11-12"} + securities: + - {ticker: EVH, exchange: NYSE} + cite: {adsh: "0001628908-26-000015", title: "Evolent Health, Inc. Form 10-K filed 2026-02-25", quote: "Specialty Care Management Services Solution The foundation for our specialty care management services solution was our acquisition in 2018 of New Century Health, a national leader in managing specialty care for Medicare members under performance-based and technology and services arrangements.", accessed: "2026-11-12"} links: - - {scope: program, target: "APM", cite: {adsh: "0001628908-26-000015", title: "Evolent Health, Inc. Form 10-K filed 2026-02-25", accessed: "2026-11-12"}} - - {scope: program, target: "CARE-MANAGEMENT", cite: {adsh: "0001628908-26-000015", title: "Evolent Health, Inc. Form 10-K filed 2026-02-25", accessed: "2026-11-12"}} - - {scope: family, target: "CCM", cite: {adsh: "0001628908-26-000015", title: "Evolent Health, Inc. Form 10-K filed 2026-02-25", accessed: "2026-11-12"}} + - {scope: program, target: "CARE-MANAGEMENT", cite: {adsh: "0001628908-26-000015", title: "Evolent Health, Inc. Form 10-K filed 2026-02-25", quote: "Specialty Care Management Services Solution The foundation for our specialty care management services solution was our acquisition in 2018 of New Century Health, a national leader in managing specialty care for Medicare members under performance-based and technology and services arrangements.", accessed: "2026-11-12"}} + - {scope: program, target: "MSSP", cite: {adsh: "0001628908-26-000015", title: "Evolent Health, Inc. Form 10-K filed 2026-02-25", quote: "We support health plans with Medicare Advantage, Medicaid and exchange products, as well as health systems and provider groups participating in payer-delegated risk arrangements or in various programs sponsored by CMS, including the Medicare Shared Savings Program.", accessed: "2026-11-12"}} - handle: ADUS name: "Addus HomeCare Corp" cik: "0001468328" status: listed aliases: ["ADDUS HOMECARE"] - securities: [{ticker: ADUS, exchange: NASDAQ}] - cite: {adsh: "0001437749-26-005352", title: "Addus HomeCare Corp Form 10-K filed 2026-02-24", accessed: "2026-11-12"} + securities: + - {ticker: ADUS, exchange: NASDAQ} + cite: {adsh: "0001437749-26-005352", title: "Addus HomeCare Corp Form 10-K filed 2026-02-24", quote: "Our services are principally provided in-home under agreements with federal, state and local government agencies, managed care organizations, commercial insurers and private individuals.", accessed: "2026-11-12"} links: - - {scope: program, target: "HOME-BASED-CARE", cite: {adsh: "0001437749-26-005352", title: "Addus HomeCare Corp Form 10-K filed 2026-02-24", accessed: "2026-11-12"}} + - {scope: program, target: "HOME-BASED-CARE", cite: {adsh: "0001437749-26-005352", title: "Addus HomeCare Corp Form 10-K filed 2026-02-24", quote: "Our services are principally provided in-home under agreements with federal, state and local government agencies, managed care organizations, commercial insurers and private individuals.", accessed: "2026-11-12"}} - handle: EHAB name: "Enhabit, Inc." cik: "0001803737" status: acquired - ended_on: 2026-05-14 + ended_on: 2026-05-15 aliases: ["ENHABIT"] - securities: [{ticker: EHAB, exchange: NYSE, valid_from: 2022-07-01, valid_to: 2026-05-14}] - cite: {adsh: "0001803737-26-000018", title: "Enhabit, Inc. Form 10-K filed 2026-03-05", accessed: "2026-11-12"} + securities: + - {ticker: EHAB, exchange: NYSE, valid_from: 2022-07-01, valid_to: 2026-05-15, cite: {adsh: "0001803737-26-000018", title: "Enhabit, Inc. Form 10-K filed 2026-03-05", quote: "The graph assumes that $100 was invested at market close on July 1, 2022, which was the first day that our common stock began trading.", accessed: "2026-11-12"}, cite_to: {adsh: "0001193125-26-225491", title: "Enhabit, Inc. Form 8-K filed 2026-05-15", quote: "☐ INTRODUCTORY NOTE On May 15, 2026 (the \"Closing Date\"), Anchor Parent, LLC, a Delaware limited liability company (\"Parent\"), completed the previously announced acquisition of Enhabit, Inc., a Delaware corporation (\"Enhabit\" or the \"Company\"), pursuant to the Agreement and Plan of Merger, dated as of February 22, 2026 (the \"Merger Agreement\"), by and among Enhabit, Parent and Anchor Merger", accessed: "2026-11-12"}} + cite: {adsh: "0001193125-26-225491", title: "Enhabit, Inc. Form 8-K filed 2026-05-15", quote: "☐ INTRODUCTORY NOTE On May 15, 2026 (the \"Closing Date\"), Anchor Parent, LLC, a Delaware limited liability company (\"Parent\"), completed the previously announced acquisition of Enhabit, Inc., a Delaware corporation (\"Enhabit\" or the \"Company\"), pursuant to the Agreement and Plan of Merger, dated as of February 22, 2026 (the \"Merger Agreement\"), by and among Enhabit, Parent and Anchor Merger", accessed: "2026-11-12"} links: - - {scope: program, target: "HOME-BASED-CARE", cite: {adsh: "0001803737-26-000018", title: "Enhabit, Inc. Form 10-K filed 2026-03-05", accessed: "2026-11-12"}} + - {scope: program, target: "HOME-BASED-CARE", cite: {adsh: "0001803737-26-000018", title: "Enhabit, Inc. Form 10-K filed 2026-03-05", quote: "BUSINESS Overview We are a leading provider of home health and hospice services in the United States.", accessed: "2026-11-12"}} - handle: CHE name: "CHEMED CORP" cik: "0000019584" status: listed aliases: ["CHEMED", "VITAS HEALTHCARE"] - securities: [{ticker: CHE, exchange: NYSE}] - cite: {adsh: "0001562762-26-000020", title: "CHEMED CORP Form 10-K filed 2026-02-27", accessed: "2026-11-12"} + securities: + - {ticker: CHE, exchange: NYSE} + cite: {adsh: "0001562762-26-000020", title: "CHEMED CORP Form 10-K filed 2026-02-27", quote: "VITAS provides hospice and palliative care services to its patients through a network of physicians, registered nurses, home health aides, social workers, clergy and volunteers.", accessed: "2026-11-12"} links: - - {scope: program, target: "HOME-BASED-CARE", cite: {adsh: "0001562762-26-000020", title: "CHEMED CORP Form 10-K filed 2026-02-27", accessed: "2026-11-12"}} + - {scope: program, target: "HOME-BASED-CARE", cite: {adsh: "0001562762-26-000020", title: "CHEMED CORP Form 10-K filed 2026-02-27", quote: "VITAS provides hospice and palliative care services to its patients through a network of physicians, registered nurses, home health aides, social workers, clergy and volunteers.", accessed: "2026-11-12"}} - handle: MD name: "Pediatrix Medical Group, Inc." cik: "0000893949" status: listed aliases: ["PEDIATRIX MEDICAL GROUP", "MEDNAX"] - securities: [{ticker: MD, exchange: NYSE}] - cite: {adsh: "0001193125-26-058074", title: "Pediatrix Medical Group, Inc. Form 10-K filed 2026-02-19", accessed: "2026-11-12"} + securities: + - {ticker: MD, exchange: NYSE, valid_from: 2009-01-01, cite: {adsh: "0001193125-09-000041", title: "Pediatrix Medical Group, Inc. Form 8-K12B filed 2009-01-02", quote: "The Mednax Common Stock will trade on the New York Stock Exchange under the \"MD\" ticker symbol in place of the Pediatrix Common Stock. In connection with the Merger, Mednax entered into an Assignment and Joinder Agreement, dated as of January 1, 2009", accessed: "2026-11-12"}} + cite: {adsh: "0001193125-26-058074", title: "Pediatrix Medical Group, Inc. Form 10-K filed 2026-02-19", quote: "For instance, the 2024 Medicare Physician Fee Schedule Final Rule decreased the 2024 conversion factor (i.e., the amount Medicare pays per relative value unit (wRVU)) by nearly 3.4% from the 2023 amount.", accessed: "2026-11-12"} links: - - {scope: program, target: "PFS", cite: {adsh: "0001193125-26-058074", title: "Pediatrix Medical Group, Inc. Form 10-K filed 2026-02-19", accessed: "2026-11-12"}} - - {scope: specialty, target: "PEDIATRIC MEDICINE", cite: {adsh: "0001193125-26-058074", title: "Pediatrix Medical Group, Inc. Form 10-K filed 2026-02-19", accessed: "2026-11-12"}} + - {scope: program, target: "PFS", cite: {adsh: "0001193125-26-058074", title: "Pediatrix Medical Group, Inc. Form 10-K filed 2026-02-19", quote: "For instance, the 2024 Medicare Physician Fee Schedule Final Rule decreased the 2024 conversion factor (i.e., the amount Medicare pays per relative value unit (wRVU)) by nearly 3.4% from the 2023 amount.", accessed: "2026-11-12"}} + - {scope: specialty, target: "PEDIATRIC MEDICINE", cite: {adsh: "0001193125-26-058074", title: "Pediatrix Medical Group, Inc. Form 10-K filed 2026-02-19", quote: "BUSINESS OVERVIEW Pediatrix is a leading provider of physician services including newborn, maternal-fetal, and other pediatric subspecialty care.", accessed: "2026-11-12"}} - handle: RDNT name: "RadNet, Inc." cik: "0000790526" status: listed aliases: ["RADNET"] - securities: [{ticker: RDNT, exchange: NASDAQ}] - cite: {adsh: "0001628280-26-013337", title: "RadNet, Inc. Form 10-K filed 2026-03-02", accessed: "2026-11-12"} + securities: + - {ticker: RDNT, exchange: NASDAQ} + cite: {adsh: "0001628280-26-013337", title: "RadNet, Inc. Form 10-K filed 2026-03-02", quote: "For services for which we bill Medicare directly or indirectly, including through contracted radiologists, we are paid under the Medicare Physician Fee Schedule.", accessed: "2026-11-12"} links: - - {scope: program, target: "PFS", cite: {adsh: "0001628280-26-013337", title: "RadNet, Inc. Form 10-K filed 2026-03-02", accessed: "2026-11-12"}} - - {scope: specialty, target: "DIAGNOSTIC RADIOLOGY", cite: {adsh: "0001628280-26-013337", title: "RadNet, Inc. Form 10-K filed 2026-03-02", accessed: "2026-11-12"}} + - {scope: program, target: "PFS", cite: {adsh: "0001628280-26-013337", title: "RadNet, Inc. Form 10-K filed 2026-03-02", quote: "For services for which we bill Medicare directly or indirectly, including through contracted radiologists, we are paid under the Medicare Physician Fee Schedule.", accessed: "2026-11-12"}} + - {scope: specialty, target: "DIAGNOSTIC RADIOLOGY", cite: {adsh: "0001628280-26-013337", title: "RadNet, Inc. Form 10-K filed 2026-03-02", quote: "Business Business Overview We are a leading national provider of diagnostic imaging services in the United States based on number of locations and annual imaging revenue.", accessed: "2026-11-12"}} - handle: USPH name: "U S PHYSICAL THERAPY INC /NV" cik: "0000885978" status: listed aliases: ["U S PHYSICAL THERAPY INC NV"] - securities: [{ticker: USPH, exchange: NYSE}] - cite: {adsh: "0001140361-26-007170", title: "U S PHYSICAL THERAPY INC /NV Form 10-K filed 2026-02-27", accessed: "2026-11-12"} + securities: + - {ticker: USPH, exchange: NYSE} + cite: {adsh: "0001140361-26-007170", title: "U S PHYSICAL THERAPY INC /NV Form 10-K filed 2026-02-27", quote: "The Medicare program reimburses outpatient rehabilitation providers based on the Medicare Physician Fee Schedule (\"MPFS\").", accessed: "2026-11-12"} links: - - {scope: program, target: "PFS", cite: {adsh: "0001140361-26-007170", title: "U S PHYSICAL THERAPY INC /NV Form 10-K filed 2026-02-27", accessed: "2026-11-12"}} + - {scope: program, target: "PFS", cite: {adsh: "0001140361-26-007170", title: "U S PHYSICAL THERAPY INC /NV Form 10-K filed 2026-02-27", quote: "The Medicare program reimburses outpatient rehabilitation providers based on the Medicare Physician Fee Schedule (\"MPFS\").", accessed: "2026-11-12"}} - handle: LFST name: "LifeStance Health Group, Inc." cik: "0001845257" status: listed aliases: ["LIFESTANCE HEALTH GROUP"] - securities: [{ticker: LFST, exchange: NASDAQ}] - cite: {adsh: "0001193125-26-071462", title: "LifeStance Health Group, Inc. Form 10-K filed 2026-02-25", accessed: "2026-11-12"} + securities: + - {ticker: LFST, exchange: NASDAQ} + cite: {adsh: "0001193125-26-071462", title: "LifeStance Health Group, Inc. Form 10-K filed 2026-02-25", quote: "charge that is typically a certain percentage of the fees specified in the Centers for Medicare & Medicaid Services (\"CMS\") Medicare Physician Fee Schedule that is charged to the patient and the payor when a patient covered by the payor obtains services from one of our", accessed: "2026-11-12"} links: - - {scope: program, target: "PFS", cite: {adsh: "0001193125-26-071462", title: "LifeStance Health Group, Inc. Form 10-K filed 2026-02-25", accessed: "2026-11-12"}} - - {scope: program, target: "TELEHEALTH", cite: {adsh: "0001193125-26-071462", title: "LifeStance Health Group, Inc. Form 10-K filed 2026-02-25", accessed: "2026-11-12"}} - - {scope: specialty, target: "PSYCHIATRY", cite: {adsh: "0001193125-26-071462", title: "LifeStance Health Group, Inc. Form 10-K filed 2026-02-25", accessed: "2026-11-12"}} + - {scope: program, target: "PFS", cite: {adsh: "0001193125-26-071462", title: "LifeStance Health Group, Inc. Form 10-K filed 2026-02-25", quote: "charge that is typically a certain percentage of the fees specified in the Centers for Medicare & Medicaid Services (\"CMS\") Medicare Physician Fee Schedule that is charged to the patient and the payor when a patient covered by the payor obtains services from one of our", accessed: "2026-11-12"}} + - {scope: program, target: "TELEHEALTH", cite: {adsh: "0001193125-26-071462", title: "LifeStance Health Group, Inc. Form 10-K filed 2026-02-25", quote: "Telehealth Provider Licensing, Medical Practice, Certification and Related Laws and Guidelines Clinicians who provide professional medical services to a patient via telehealth must, in most instances, hold a valid license to practice medicine in the state in which the patient is located.", accessed: "2026-11-12"}} + - {scope: specialty, target: "PSYCHIATRY", cite: {adsh: "0001193125-26-071462", title: "LifeStance Health Group, Inc. Form 10-K filed 2026-02-25", quote: "Our clinicians offer patients a comprehensive, multidisciplinary suite of mental health services, spanning psychiatric evaluations and treatment, psychological and neuropsychological testing, and individual, family and group therapy.", accessed: "2026-11-12"}} - handle: DVA name: "DAVITA INC." cik: "0000927066" status: listed aliases: ["DAVITA"] - securities: [{ticker: DVA, exchange: NYSE}] - cite: {adsh: "0000927066-26-000012", title: "DAVITA INC. Form 10-K filed 2026-02-11", accessed: "2026-11-12"} + securities: + - {ticker: DVA, exchange: NYSE} + cite: {adsh: "0000927066-26-000012", title: "DAVITA INC. Form 10-K filed 2026-02-11", quote: "business has percent-of-premium arrangements in several Medicare Advantage ESRD Chronic Special Needs Plans (C-SNPs) and is an active participant in the Center for Medicare and Medicaid Innovation's (CMMI's) Comprehensive Kidney Care Contracting (CKCC) model that seeks to manage the care of late stage CKD and ESKD patients to delay the progression of kidney disease, promote home dialysis", accessed: "2026-11-12"} links: - - {scope: program, target: "APM", cite: {adsh: "0000927066-26-000012", title: "DAVITA INC. Form 10-K filed 2026-02-11", accessed: "2026-11-12"}} - - {scope: specialty, target: "NEPHROLOGY", cite: {adsh: "0000927066-26-000012", title: "DAVITA INC. Form 10-K filed 2026-02-11", accessed: "2026-11-12"}} + - {scope: program, target: "APM", cite: {adsh: "0000927066-26-000012", title: "DAVITA INC. Form 10-K filed 2026-02-11", quote: "business has percent-of-premium arrangements in several Medicare Advantage ESRD Chronic Special Needs Plans (C-SNPs) and is an active participant in the Center for Medicare and Medicaid Innovation's (CMMI's) Comprehensive Kidney Care Contracting (CKCC) model that seeks to manage the care of late stage CKD and ESKD patients to delay the progression of kidney disease, promote home dialysis", accessed: "2026-11-12"}} + - {scope: specialty, target: "NEPHROLOGY", cite: {adsh: "0000927066-26-000012", title: "DAVITA INC. Form 10-K filed 2026-02-11", quote: "Our robust platform to deliver kidney care services also includes established nephrology and payor relationships.", accessed: "2026-11-12"}} - handle: UNH name: "UNITEDHEALTH GROUP INC" cik: "0000731766" status: listed aliases: ["UNITEDHEALTH GROUP", "UNITEDHEALTHCARE", "OPTUM"] - securities: [{ticker: UNH, exchange: NYSE}] - cite: {adsh: "0000731766-26-000062", title: "UNITEDHEALTH GROUP INC Form 10-K filed 2026-03-02", accessed: "2026-11-12"} + securities: + - {ticker: UNH, exchange: NYSE} + cite: {adsh: "0000731766-26-000062", title: "UNITEDHEALTH GROUP INC Form 10-K filed 2026-03-02", quote: "This trend is creating needs for health management services that can coordinate care around the primary care physician, including new primary care channels, and for investments in new clinical and administrative information and management systems, which we believe provide growth opportunities for our Optum business platform.", accessed: "2026-11-12"} links: - - {scope: program, target: "PFS", cite: {adsh: "0000731766-26-000062", title: "UNITEDHEALTH GROUP INC Form 10-K filed 2026-03-02", accessed: "2026-11-12"}} - - {scope: program, target: "APM", cite: {adsh: "0000731766-26-000062", title: "UNITEDHEALTH GROUP INC Form 10-K filed 2026-03-02", accessed: "2026-11-12"}} - - {scope: specialty, target: "PRIMARY CARE", cite: {adsh: "0000731766-26-000062", title: "UNITEDHEALTH GROUP INC Form 10-K filed 2026-03-02", accessed: "2026-11-12"}} + - {scope: specialty, target: "PRIMARY CARE", cite: {adsh: "0000731766-26-000062", title: "UNITEDHEALTH GROUP INC Form 10-K filed 2026-03-02", quote: "This trend is creating needs for health management services that can coordinate care around the primary care physician, including new primary care channels, and for investments in new clinical and administrative information and management systems, which we believe provide growth opportunities for our Optum business platform.", accessed: "2026-11-12"}} - handle: HUM name: "HUMANA INC" cik: "0000049071" status: listed aliases: ["HUMANA", "CENTERWELL"] - securities: [{ticker: HUM, exchange: NYSE}] - cite: {adsh: "0000049071-26-000009", title: "HUMANA INC Form 10-K filed 2026-02-19", accessed: "2026-11-12"} + securities: + - {ticker: HUM, exchange: NYSE} + cite: {adsh: "0000049071-26-000009", title: "HUMANA INC Form 10-K filed 2026-02-19", quote: "Home Solutions CenterWell Home Health We operate CenterWell Home Health, one of the nation's largest home health providers, through which we are actively involved in the care management of our customers with the greatest needs via in-home care.", accessed: "2026-11-12"} links: - - {scope: program, target: "HOME-BASED-CARE", cite: {adsh: "0000049071-26-000009", title: "HUMANA INC Form 10-K filed 2026-02-19", accessed: "2026-11-12"}} - - {scope: program, target: "APM", cite: {adsh: "0000049071-26-000009", title: "HUMANA INC Form 10-K filed 2026-02-19", accessed: "2026-11-12"}} - - {scope: specialty, target: "PRIMARY CARE", cite: {adsh: "0000049071-26-000009", title: "HUMANA INC Form 10-K filed 2026-02-19", accessed: "2026-11-12"}} + - {scope: program, target: "HOME-BASED-CARE", cite: {adsh: "0000049071-26-000009", title: "HUMANA INC Form 10-K filed 2026-02-19", quote: "Home Solutions CenterWell Home Health We operate CenterWell Home Health, one of the nation's largest home health providers, through which we are actively involved in the care management of our customers with the greatest needs via in-home care.", accessed: "2026-11-12"}} + - {scope: specialty, target: "PRIMARY CARE", cite: {adsh: "0000049071-26-000009", title: "HUMANA INC Form 10-K filed 2026-02-19", quote: "This segment includes our pharmacy solutions, primary care, and home solutions operations.", accessed: "2026-11-12"}} - handle: CVS name: "CVS HEALTH Corp" cik: "0000064803" status: listed aliases: ["CVS HEALTH", "AETNA"] - securities: [{ticker: CVS, exchange: NYSE}] - cite: {adsh: "0000064803-26-000010", title: "CVS HEALTH Corp Form 10-K filed 2026-02-10", accessed: "2026-11-12"} + securities: + - {ticker: CVS, exchange: NYSE} + cite: {adsh: "0000064803-26-000010", title: "CVS HEALTH Corp Form 10-K filed 2026-02-10", quote: "(\"Oak Street Health\"), a leading multi-payor operator of value-based primary care centers serving Medicare eligible patients.", accessed: "2026-11-12"} links: - - {scope: program, target: "PFS", cite: {adsh: "0000064803-26-000010", title: "CVS HEALTH Corp Form 10-K filed 2026-02-10", accessed: "2026-11-12"}} - - {scope: program, target: "HOME-BASED-CARE", cite: {adsh: "0000064803-26-000010", title: "CVS HEALTH Corp Form 10-K filed 2026-02-10", accessed: "2026-11-12"}} - - {scope: specialty, target: "PRIMARY CARE", cite: {adsh: "0000064803-26-000010", title: "CVS HEALTH Corp Form 10-K filed 2026-02-10", accessed: "2026-11-12"}} + - {scope: specialty, target: "PRIMARY CARE", cite: {adsh: "0000064803-26-000010", title: "CVS HEALTH Corp Form 10-K filed 2026-02-10", quote: "(\"Oak Street Health\"), a leading multi-payor operator of value-based primary care centers serving Medicare eligible patients.", accessed: "2026-11-12"}} + - {scope: program, target: "HOME-BASED-CARE", cite: {adsh: "0000064803-26-000010", title: "CVS HEALTH Corp Form 10-K filed 2026-02-10", quote: "These credentialed providers are deployed into the home primarily to conduct in-home health evaluations (\"IHEs\") and perform select diagnostic services.", accessed: "2026-11-12"}} - handle: CI name: "Cigna Group" cik: "0001739940" status: listed aliases: ["CIGNA GROUP", "CIGNA", "EVERNORTH"] - securities: [{ticker: CI, exchange: NYSE}] - cite: {adsh: "0001739940-26-000006", title: "Cigna Group Form 10-K filed 2026-02-26", accessed: "2026-11-12"} + securities: + - {ticker: CI, exchange: NYSE, valid_from: 2018-12-21, cite: {adsh: "0001140361-18-045479", title: "Cigna Group Form 8-K12B filed 2018-12-20", quote: "Cigna common stock will cease trading on the New York Stock Exchange (the \"NYSE\") and Express Scripts common stock will cease trading on the Nasdaq Global Select Market, in each case prior to the open of trading on December 21, 2018, and New Cigna common stock will commence trading on the NYSE on December 21, 2018 under the symbol \"CI\".", accessed: "2026-11-12"}} + cite: {adsh: "0001739940-26-000006", title: "Cigna Group Form 10-K filed 2026-02-26", quote: "The Evernorth Health Services segment, through our Pharmacy Benefit Services and Specialty and Care Services operating segments, provides independent and coordinated health solutions and capabilities to enable the health care system to work better and help people live healthier lives.", accessed: "2026-11-12"} links: - - {scope: program, target: "PFS", cite: {adsh: "0001739940-26-000006", title: "Cigna Group Form 10-K filed 2026-02-26", accessed: "2026-11-12"}} - - {scope: program, target: "APM", cite: {adsh: "0001739940-26-000006", title: "Cigna Group Form 10-K filed 2026-02-26", accessed: "2026-11-12"}} + - {scope: program, target: "CARE-MANAGEMENT", cite: {adsh: "0001739940-26-000006", title: "Cigna Group Form 10-K filed 2026-02-26", quote: "The Evernorth Health Services segment, through our Pharmacy Benefit Services and Specialty and Care Services operating segments, provides independent and coordinated health solutions and capabilities to enable the health care system to work better and help people live healthier lives.", accessed: "2026-11-12"}} - handle: ELV name: "Elevance Health, Inc." cik: "0001156039" status: listed aliases: ["ELEVANCE HEALTH", "ANTHEM", "CARELON"] - securities: [{ticker: ELV, exchange: NYSE}] - cite: {adsh: "0001156039-26-000013", title: "Elevance Health, Inc. Form 10-K filed 2026-02-06", accessed: "2026-11-12"} + securities: + - {ticker: ELV, exchange: NYSE, valid_from: 2022-06-28, cite: {adsh: "0001193125-22-183957", title: "Elevance Health, Inc. Form 8-K filed 2022-06-28", quote: "to Rule 13e-4(c) under the Exchange Act (17 CFR 240.13e-4(c)) Securities registered pursuant to Section 12(b) of the Act: Title of each class Trading Symbol(s) Name of each exchange on which registered Common Stock ELV NYSE Indicate by check mark whether the registrant is an emerging growth company as defined in Rule 405 of the Securities Act of 1933 (§230.405 of this chapter) or", accessed: "2026-11-12"}} + cite: {adsh: "0001156039-26-000013", title: "Elevance Health, Inc. Form 10-K filed 2026-02-06", quote: "In addition, we provide a broad array of managed care services to fee-based customers, including claims processing, stop loss insurance, care provider network access, medical management, care management, wellness programs, actuarial services and other administrative services.", accessed: "2026-11-12"} links: - - {scope: program, target: "PFS", cite: {adsh: "0001156039-26-000013", title: "Elevance Health, Inc. Form 10-K filed 2026-02-06", accessed: "2026-11-12"}} - - {scope: program, target: "APM", cite: {adsh: "0001156039-26-000013", title: "Elevance Health, Inc. Form 10-K filed 2026-02-06", accessed: "2026-11-12"}} + - {scope: program, target: "CARE-MANAGEMENT", cite: {adsh: "0001156039-26-000013", title: "Elevance Health, Inc. Form 10-K filed 2026-02-06", quote: "In addition, we provide a broad array of managed care services to fee-based customers, including claims processing, stop loss insurance, care provider network access, medical management, care management, wellness programs, actuarial services and other administrative services.", accessed: "2026-11-12"}} - handle: LH name: "LABCORP HOLDINGS INC." cik: "0000920148" status: listed aliases: ["LABCORP HOLDINGS", "LABCORP", "LABORATORY CORPORATION OF AMERICA HOLDINGS"] - securities: [{ticker: LH, exchange: NYSE}] - cite: {adsh: "0000920148-26-000111", title: "LABCORP HOLDINGS INC. Form 10-K filed 2026-02-24", accessed: "2026-11-12"} + securities: + - {ticker: LH, exchange: NYSE} + cite: {adsh: "0000920148-26-000111", title: "LABCORP HOLDINGS INC. Form 10-K filed 2026-02-24", quote: "Testing ordered by physicians and other healthcare providers who provide healthcare services represents the largest portion of the clinical laboratory market, and Dx supports this demand through an expansive test menu that includes clinical, anatomic pathology, genetic, and genomic tests.", accessed: "2026-11-12"} links: - - {scope: program, target: "PFS", cite: {adsh: "0000920148-26-000111", title: "LABCORP HOLDINGS INC. Form 10-K filed 2026-02-24", accessed: "2026-11-12"}} - - {scope: specialty, target: "PATHOLOGY", cite: {adsh: "0000920148-26-000111", title: "LABCORP HOLDINGS INC. Form 10-K filed 2026-02-24", accessed: "2026-11-12"}} + - {scope: specialty, target: "PATHOLOGY", cite: {adsh: "0000920148-26-000111", title: "LABCORP HOLDINGS INC. Form 10-K filed 2026-02-24", quote: "Testing ordered by physicians and other healthcare providers who provide healthcare services represents the largest portion of the clinical laboratory market, and Dx supports this demand through an expansive test menu that includes clinical, anatomic pathology, genetic, and genomic tests.", accessed: "2026-11-12"}} - handle: DGX name: "QUEST DIAGNOSTICS INC" cik: "0001022079" status: listed aliases: ["QUEST DIAGNOSTICS"] - securities: [{ticker: DGX, exchange: NYSE}] - cite: {adsh: "0001022079-26-000015", title: "QUEST DIAGNOSTICS INC Form 10-K filed 2026-02-26", accessed: "2026-11-12"} + securities: + - {ticker: DGX, exchange: NYSE} + cite: {adsh: "0001022079-26-000015", title: "QUEST DIAGNOSTICS INC Form 10-K filed 2026-02-26", quote: "We also provide physician services that are reimbursed by Medicare under a physician fee schedule, which is subject to adjustment on an annual basis.", accessed: "2026-11-12"} links: - - {scope: program, target: "PFS", cite: {adsh: "0001022079-26-000015", title: "QUEST DIAGNOSTICS INC Form 10-K filed 2026-02-26", accessed: "2026-11-12"}} - - {scope: specialty, target: "PATHOLOGY", cite: {adsh: "0001022079-26-000015", title: "QUEST DIAGNOSTICS INC Form 10-K filed 2026-02-26", accessed: "2026-11-12"}} + - {scope: program, target: "PFS", cite: {adsh: "0001022079-26-000015", title: "QUEST DIAGNOSTICS INC Form 10-K filed 2026-02-26", quote: "We also provide physician services that are reimbursed by Medicare under a physician fee schedule, which is subject to adjustment on an annual basis.", accessed: "2026-11-12"}} + - {scope: specialty, target: "PATHOLOGY", cite: {adsh: "0001022079-26-000015", title: "QUEST DIAGNOSTICS INC Form 10-K filed 2026-02-26", quote: "Clinical testing is generally categorized as clinical laboratory testing and anatomic pathology services.", accessed: "2026-11-12"}} - handle: TDOC name: "Teladoc Health, Inc." cik: "0001477449" status: listed aliases: ["TELADOC HEALTH"] - securities: [{ticker: TDOC, exchange: NYSE}] - cite: {adsh: "0001477449-26-000012", title: "Teladoc Health, Inc. Form 10-K filed 2026-02-26", accessed: "2026-11-12"} + securities: + - {ticker: TDOC, exchange: NYSE} + cite: {adsh: "0001477449-26-000012", title: "Teladoc Health, Inc. Form 10-K filed 2026-02-26", quote: "By combining the latest in data science and analytics with a personalized user experience through a set of highly flexible integrated technology platforms, we completed 17.1 million telehealth visits in 2025 through our business-to-business (\"B2B\") and direct-to-consumer (\"D2C\") channels.", accessed: "2026-11-12"} links: - - {scope: program, target: "TELEHEALTH", cite: {adsh: "0001477449-26-000012", title: "Teladoc Health, Inc. Form 10-K filed 2026-02-26", accessed: "2026-11-12"}} - - {scope: program, target: "PFS", cite: {adsh: "0001477449-26-000012", title: "Teladoc Health, Inc. Form 10-K filed 2026-02-26", accessed: "2026-11-12"}} + - {scope: program, target: "TELEHEALTH", cite: {adsh: "0001477449-26-000012", title: "Teladoc Health, Inc. Form 10-K filed 2026-02-26", quote: "By combining the latest in data science and analytics with a personalized user experience through a set of highly flexible integrated technology platforms, we completed 17.1 million telehealth visits in 2025 through our business-to-business (\"B2B\") and direct-to-consumer (\"D2C\") channels.", accessed: "2026-11-12"}} - handle: AMWL name: "American Well Corp" cik: "0001393584" status: listed aliases: ["AMERICAN WELL"] - securities: [{ticker: AMWL, exchange: NYSE}] - cite: {adsh: "0001193125-26-048776", title: "American Well Corp Form 10-K filed 2026-02-12", accessed: "2026-11-12"} + securities: + - {ticker: AMWL, exchange: NYSE} + cite: {adsh: "0001193125-26-048776", title: "American Well Corp Form 10-K filed 2026-02-12", quote: "Today, Amwell extends digital care beyond telehealth, enabling care across in-person, virtual and automated modalities and providing an open, scalable platform that can flex and grow alongside our clients.", accessed: "2026-11-12"} links: - - {scope: program, target: "TELEHEALTH", cite: {adsh: "0001193125-26-048776", title: "American Well Corp Form 10-K filed 2026-02-12", accessed: "2026-11-12"}} - - {scope: program, target: "PFS", cite: {adsh: "0001193125-26-048776", title: "American Well Corp Form 10-K filed 2026-02-12", accessed: "2026-11-12"}} + - {scope: program, target: "TELEHEALTH", cite: {adsh: "0001193125-26-048776", title: "American Well Corp Form 10-K filed 2026-02-12", quote: "Today, Amwell extends digital care beyond telehealth, enabling care across in-person, virtual and automated modalities and providing an open, scalable platform that can flex and grow alongside our clients.", accessed: "2026-11-12"}} - handle: HCA name: "HCA Healthcare, Inc." cik: "0000860730" status: listed aliases: ["HCA HEALTHCARE", "HCA"] - securities: [{ticker: HCA, exchange: NYSE, valid_from: 2011-03-10}] - cite: {adsh: "0001193125-26-044769", title: "HCA Healthcare, Inc. Form 10-K filed 2026-02-10", accessed: "2026-11-12"} + securities: + - {ticker: HCA, exchange: NYSE, valid_from: 2011-03-10, cite: {adsh: "0001193125-12-075882", title: "HCA Healthcare, Inc. Form 10-K filed 2012-02-24", quote: "Our first day of trading was March 10, 2011.", accessed: "2026-11-12"}} + cite: {adsh: "0001193125-26-044769", title: "HCA Healthcare, Inc. Form 10-K filed 2026-02-10", quote: "Under the policy, clinic visit services provided at all off-campus provider-based departments are generally not covered as outpatient department services under the outpatient PPS, but rather are reimbursed at the Medicare Physician Fee Schedule (\"Physician Fee Schedule\") rate, which is generally lower than the outpatient PPS rate.", accessed: "2026-11-12"} links: - - {scope: program, target: "PFS", cite: {adsh: "0001193125-26-044769", title: "HCA Healthcare, Inc. Form 10-K filed 2026-02-10", accessed: "2026-11-12"}} + - {scope: program, target: "PFS", cite: {adsh: "0001193125-26-044769", title: "HCA Healthcare, Inc. Form 10-K filed 2026-02-10", quote: "Under the policy, clinic visit services provided at all off-campus provider-based departments are generally not covered as outpatient department services under the outpatient PPS, but rather are reimbursed at the Medicare Physician Fee Schedule (\"Physician Fee Schedule\") rate, which is generally lower than the outpatient PPS rate.", accessed: "2026-11-12"}} - handle: THC name: "TENET HEALTHCARE CORP" cik: "0000070318" status: listed aliases: ["TENET HEALTHCARE"] - securities: [{ticker: THC, exchange: NYSE}] - cite: {adsh: "0000070318-26-000012", title: "TENET HEALTHCARE CORP Form 10-K filed 2026-02-17", accessed: "2026-11-12"} + securities: + - {ticker: THC, exchange: NYSE} + cite: {adsh: "0000070318-26-000012", title: "TENET HEALTHCARE CORP Form 10-K filed 2026-02-17", quote: "Physician and Other Health Professional Services Payment System Medicare uses a fee schedule to pay for physician and other health professional services based on a list of services and their payment rates referred to as the Medicare Physician Fee Schedule (\"MPFS\").", accessed: "2026-11-12"} links: - - {scope: program, target: "PFS", cite: {adsh: "0000070318-26-000012", title: "TENET HEALTHCARE CORP Form 10-K filed 2026-02-17", accessed: "2026-11-12"}} + - {scope: program, target: "PFS", cite: {adsh: "0000070318-26-000012", title: "TENET HEALTHCARE CORP Form 10-K filed 2026-02-17", quote: "Physician and Other Health Professional Services Payment System Medicare uses a fee schedule to pay for physician and other health professional services based on a list of services and their payment rates referred to as the Medicare Physician Fee Schedule (\"MPFS\").", accessed: "2026-11-12"}} - handle: UHS name: "UNIVERSAL HEALTH SERVICES INC" cik: "0000352915" status: listed aliases: ["UNIVERSAL HEALTH SERVICES"] - securities: [{ticker: UHS, exchange: NYSE}] - cite: {adsh: "0001193125-26-071676", title: "UNIVERSAL HEALTH SERVICES INC Form 10-K filed 2026-02-25", accessed: "2026-11-12"} + securities: + - {ticker: UHS, exchange: NYSE} + cite: {adsh: "0001193125-26-071676", title: "UNIVERSAL HEALTH SERVICES INC Form 10-K filed 2026-02-25", quote: "Inpatient services furnished by psychiatric hospitals under the Medicare program are paid under a Psychiatric Prospective Payment System (\"Psych PPS\").", accessed: "2026-11-12"} links: - - {scope: program, target: "PFS", cite: {adsh: "0001193125-26-071676", title: "UNIVERSAL HEALTH SERVICES INC Form 10-K filed 2026-02-25", accessed: "2026-11-12"}} - - {scope: specialty, target: "PSYCHIATRY", cite: {adsh: "0001193125-26-071676", title: "UNIVERSAL HEALTH SERVICES INC Form 10-K filed 2026-02-25", accessed: "2026-11-12"}} + - {scope: specialty, target: "PSYCHIATRY", cite: {adsh: "0001193125-26-071676", title: "UNIVERSAL HEALTH SERVICES INC Form 10-K filed 2026-02-25", quote: "Inpatient services furnished by psychiatric hospitals under the Medicare program are paid under a Psychiatric Prospective Payment System (\"Psych PPS\").", accessed: "2026-11-12"}} - handle: CYH name: "COMMUNITY HEALTH SYSTEMS INC" cik: "0001108109" status: listed aliases: ["COMMUNITY HEALTH SYSTEMS"] - securities: [{ticker: CYH, exchange: NYSE}] - cite: {adsh: "0001193125-26-059509", title: "COMMUNITY HEALTH SYSTEMS INC Form 10-K filed 2026-02-19", accessed: "2026-11-12"} + securities: + - {ticker: CYH, exchange: NYSE} + cite: {adsh: "0001193125-26-059509", title: "COMMUNITY HEALTH SYSTEMS INC Form 10-K filed 2026-02-19", quote: "Under the policy, all off-campus provider-based departments are paid the Medicare Physician Fee Schedule, or MPFS, -equivalent rate for clinic visits, which is generally substantially lower than the outpatient PPS rate.", accessed: "2026-11-12"} links: - - {scope: program, target: "PFS", cite: {adsh: "0001193125-26-059509", title: "COMMUNITY HEALTH SYSTEMS INC Form 10-K filed 2026-02-19", accessed: "2026-11-12"}} + - {scope: program, target: "PFS", cite: {adsh: "0001193125-26-059509", title: "COMMUNITY HEALTH SYSTEMS INC Form 10-K filed 2026-02-19", quote: "Under the policy, all off-campus provider-based departments are paid the Medicare Physician Fee Schedule, or MPFS, -equivalent rate for clinic visits, which is generally substantially lower than the outpatient PPS rate.", accessed: "2026-11-12"}} - handle: ENSG name: "ENSIGN GROUP, INC" cik: "0001125376" status: listed aliases: ["ENSIGN GROUP"] - securities: [{ticker: ENSG, exchange: NASDAQ}] - cite: {adsh: "0001125376-26-000007", title: "ENSIGN GROUP, INC Form 10-K filed 2026-02-04", accessed: "2026-11-12"} + securities: + - {ticker: ENSG, exchange: NASDAQ} + cite: {adsh: "0001125376-26-000007", title: "ENSIGN GROUP, INC Form 10-K filed 2026-02-04", quote: "Medicare Part B Fee Schedule - On October 31, 2025, CMS issued the CY 2026 Medicare Physician Fee Schedule (CY 2026 PFS) Final Rule, which outlines significant changes aimed at modernizing Medicare, improving care quality, and reducing unnecessary spending.", accessed: "2026-11-12"} links: - - {scope: program, target: "HOME-BASED-CARE", cite: {adsh: "0001125376-26-000007", title: "ENSIGN GROUP, INC Form 10-K filed 2026-02-04", accessed: "2026-11-12"}} + - {scope: program, target: "PFS", cite: {adsh: "0001125376-26-000007", title: "ENSIGN GROUP, INC Form 10-K filed 2026-02-04", quote: "Medicare Part B Fee Schedule - On October 31, 2025, CMS issued the CY 2026 Medicare Physician Fee Schedule (CY 2026 PFS) Final Rule, which outlines significant changes aimed at modernizing Medicare, improving care quality, and reducing unnecessary spending.", accessed: "2026-11-12"}} + - {scope: program, target: "TELEHEALTH", cite: {adsh: "0001125376-26-000007", title: "ENSIGN GROUP, INC Form 10-K filed 2026-02-04", quote: "Of specific importance to our businesses are: •Telehealth Waivers: Since the COVID-19 Pandemic, Congress has temporarily waived restrictions so Medicare beneficiaries can access telehealth services at home and outside of rural areas.", accessed: "2026-11-12"}} orgs: - key: ASA @@ -358,200 +376,195 @@ orgs: org_type: specialty_society specialty: "ANESTHESIOLOGY" aliases: ["AMERICAN SOCIETY OF ANESTHESIOLOGISTS"] - cite: {url: "https://www.asahq.org/", title: "American Society of Anesthesiologists official website", accessed: "2026-11-12"} + cite: {item_key: "N8RVIA96", title: "AMA RUC roster 2023 (saved copy): society row for ANESTHESIOLOGY", accessed: "2026-11-12"} - key: ACC name: "American College of Cardiology" org_type: specialty_society specialty: "CARDIOLOGY" aliases: ["AMERICAN COLLEGE OF CARDIOLOGY"] - cite: {url: "https://www.acc.org/", title: "American College of Cardiology official website", accessed: "2026-11-12"} + cite: {item_key: "N8RVIA96", title: "AMA RUC roster 2023 (saved copy): society row for CARDIOLOGY", accessed: "2026-11-12"} - key: STS name: "Society of Thoracic Surgeons" org_type: specialty_society specialty: "THORACIC SURGERY" aliases: ["SOCIETY OF THORACIC SURGEONS"] - cite: {url: "https://www.sts.org/", title: "Society of Thoracic Surgeons official website", accessed: "2026-11-12"} + cite: {item_key: "N8RVIA96", title: "AMA RUC roster 2023 (saved copy): society row for THORACIC SURGERY", accessed: "2026-11-12"} - key: AAD name: "American Academy of Dermatology" org_type: specialty_society specialty: "DERMATOLOGY" aliases: ["AMERICAN ACADEMY OF DERMATOLOGY"] - cite: {url: "https://www.aad.org/", title: "American Academy of Dermatology official website", accessed: "2026-11-12"} + cite: {item_key: "N8RVIA96", title: "AMA RUC roster 2023 (saved copy): society row for DERMATOLOGY", accessed: "2026-11-12"} - key: ACEP name: "American College of Emergency Physicians" org_type: specialty_society specialty: "EMERGENCY MEDICINE" aliases: ["AMERICAN COLLEGE OF EMERGENCY PHYSICIANS"] - cite: {url: "https://www.acep.org/", title: "American College of Emergency Physicians official website", accessed: "2026-11-12"} + cite: {item_key: "N8RVIA96", title: "AMA RUC roster 2023 (saved copy): society row for EMERGENCY MEDICINE", accessed: "2026-11-12"} - key: AAFP name: "American Academy of Family Physicians" org_type: specialty_society specialty: "FAMILY PRACTICE" aliases: ["AMERICAN ACADEMY OF FAMILY PHYSICIANS"] fec_committee_ids: ["C00411553"] - cite: {url: "https://www.aafp.org/", title: "American Academy of Family Physicians official website", accessed: "2026-11-12"} + cite: {item_key: "N8RVIA96", title: "AMA RUC roster 2023 (saved copy): society row for FAMILY PRACTICE", accessed: "2026-11-12"} - key: ACS name: "American College of Surgeons" org_type: specialty_society specialty: "GENERAL SURGERY" aliases: ["AMERICAN COLLEGE OF SURGEONS"] - cite: {url: "https://www.facs.org/", title: "American College of Surgeons official website", accessed: "2026-11-12"} + cite: {item_key: "N8RVIA96", title: "AMA RUC roster 2023 (saved copy): society row for GENERAL SURGERY", accessed: "2026-11-12"} - key: AGS name: "American Geriatrics Society" org_type: specialty_society specialty: "GERIATRIC MEDICINE" aliases: ["AMERICAN GERIATRICS SOCIETY"] - cite: {url: "https://www.americangeriatrics.org/", title: "American Geriatrics Society official website", accessed: "2026-11-12"} + cite: {item_key: "N8RVIA96", title: "AMA RUC roster 2023 (saved copy): society row for GERIATRIC MEDICINE", accessed: "2026-11-12"} - key: ACP name: "American College of Physicians" org_type: specialty_society specialty: "INTERNAL MEDICINE" aliases: ["AMERICAN COLLEGE OF PHYSICIANS"] - cite: {url: "https://www.acponline.org/", title: "American College of Physicians official website", accessed: "2026-11-12"} + cite: {item_key: "N8RVIA96", title: "AMA RUC roster 2023 (saved copy): society row for INTERNAL MEDICINE", accessed: "2026-11-12"} - key: RPA name: "Renal Physicians Association" org_type: specialty_society specialty: "NEPHROLOGY" aliases: ["RENAL PHYSICIANS ASSOCIATION"] - cite: {url: "https://www.renalmd.org/", title: "Renal Physicians Association official website", accessed: "2026-11-12"} + cite: {item_key: "N8RVIA96", title: "AMA RUC roster 2023 (saved copy): society row for NEPHROLOGY", accessed: "2026-11-12"} - key: AAN name: "American Academy of Neurology" org_type: specialty_society specialty: "NEUROLOGY" aliases: ["AMERICAN ACADEMY OF NEUROLOGY"] - cite: {url: "https://www.aan.com/", title: "American Academy of Neurology official website", accessed: "2026-11-12"} + cite: {item_key: "N8RVIA96", title: "AMA RUC roster 2023 (saved copy): society row for NEUROLOGY", accessed: "2026-11-12"} - key: AANS name: "American Association of Neurological Surgeons" org_type: specialty_society specialty: "NEUROSURGERY" aliases: ["AMERICAN ASSOCIATION OF NEUROLOGICAL SURGEONS"] - cite: {url: "https://www.aans.org/", title: "American Association of Neurological Surgeons official website", accessed: "2026-11-12"} + cite: {item_key: "N8RVIA96", title: "AMA RUC roster 2023 (saved copy): society row for NEUROSURGERY", accessed: "2026-11-12"} - key: ACOG name: "American College of Obstetricians and Gynecologists" org_type: specialty_society specialty: "OBSTETRICS GYNECOLOGY" aliases: ["AMERICAN COLLEGE OF OBSTETRICIANS AND GYNECOLOGISTS"] - cite: {url: "https://www.acog.org/", title: "American College of Obstetricians and Gynecologists official website", accessed: "2026-11-12"} + cite: {item_key: "N8RVIA96", title: "AMA RUC roster 2023 (saved copy): society row for OBSTETRICS GYNECOLOGY", accessed: "2026-11-12"} - key: AAO name: "American Academy of Ophthalmology" org_type: specialty_society specialty: "OPHTHALMOLOGY" aliases: ["AMERICAN ACADEMY OF OPHTHALMOLOGY"] - cite: {url: "https://www.aao.org/", title: "American Academy of Ophthalmology official website", accessed: "2026-11-12"} + cite: {item_key: "N8RVIA96", title: "AMA RUC roster 2023 (saved copy): society row for OPHTHALMOLOGY", accessed: "2026-11-12"} - key: AAOS name: "American Academy of Orthopaedic Surgeons" org_type: specialty_society specialty: "ORTHOPEDIC SURGERY" aliases: ["AMERICAN ACADEMY OF ORTHOPAEDIC SURGEONS"] - cite: {url: "https://www.aaos.org/", title: "American Academy of Orthopaedic Surgeons official website", accessed: "2026-11-12"} + cite: {item_key: "N8RVIA96", title: "AMA RUC roster 2023 (saved copy): society row for ORTHOPEDIC SURGERY", accessed: "2026-11-12"} - key: AAO-HNS name: "American Academy of Otolaryngology-Head and Neck Surgery" org_type: specialty_society specialty: "OTOLARYNGOLOGY" aliases: ["AMERICAN ACADEMY OF OTOLARYNGOLOGY HEAD AND NECK SURGERY"] - cite: {url: "https://www.entnet.org/", title: "American Academy of Otolaryngology-Head and Neck Surgery official website", accessed: "2026-11-12"} + cite: {item_key: "N8RVIA96", title: "AMA RUC roster 2023 (saved copy): society row for OTOLARYNGOLOGY", accessed: "2026-11-12"} - key: CAP name: "College of American Pathologists" org_type: specialty_society specialty: "PATHOLOGY" aliases: ["COLLEGE OF AMERICAN PATHOLOGISTS"] - cite: {url: "https://www.cap.org/", title: "College of American Pathologists official website", accessed: "2026-11-12"} + cite: {item_key: "N8RVIA96", title: "AMA RUC roster 2023 (saved copy): society row for PATHOLOGY", accessed: "2026-11-12"} - key: AAP name: "American Academy of Pediatrics" org_type: specialty_society specialty: "PEDIATRIC MEDICINE" aliases: ["AMERICAN ACADEMY OF PEDIATRICS"] - cite: {url: "https://www.aap.org/", title: "American Academy of Pediatrics official website", accessed: "2026-11-12"} + cite: {item_key: "N8RVIA96", title: "AMA RUC roster 2023 (saved copy): society row for PEDIATRIC MEDICINE", accessed: "2026-11-12"} - key: AAPMR name: "American Academy of Physical Medicine and Rehabilitation" org_type: specialty_society specialty: "PHYSICAL MEDICINE AND REHABILITATION" aliases: ["AMERICAN ACADEMY OF PHYSICAL MEDICINE AND REHABILITATION"] - cite: {url: "https://www.aapmr.org/", title: "American Academy of Physical Medicine and Rehabilitation official website", accessed: "2026-11-12"} + cite: {item_key: "N8RVIA96", title: "AMA RUC roster 2023 (saved copy): society row for PHYSICAL MEDICINE AND REHABILITATION", accessed: "2026-11-12"} - key: ASPS name: "American Society of Plastic Surgeons" org_type: specialty_society specialty: "PLASTIC AND RECONSTRUCTIVE SURGERY" aliases: ["AMERICAN SOCIETY OF PLASTIC SURGEONS"] - cite: {url: "https://www.plasticsurgery.org/", title: "American Society of Plastic Surgeons official website", accessed: "2026-11-12"} + cite: {item_key: "N8RVIA96", title: "AMA RUC roster 2023 (saved copy): society row for PLASTIC AND RECONSTRUCTIVE SURGERY", accessed: "2026-11-12"} - key: APA name: "American Psychiatric Association" org_type: specialty_society specialty: "PSYCHIATRY" aliases: ["AMERICAN PSYCHIATRIC ASSOCIATION"] - cite: {url: "https://www.psychiatry.org/", title: "American Psychiatric Association official website", accessed: "2026-11-12"} + cite: {item_key: "N8RVIA96", title: "AMA RUC roster 2023 (saved copy): society row for PSYCHIATRY", accessed: "2026-11-12"} - key: CHEST name: "American College of Chest Physicians" org_type: specialty_society specialty: "PULMONARY DISEASE" aliases: ["AMERICAN COLLEGE OF CHEST PHYSICIANS"] - cite: {url: "https://www.chestnet.org/", title: "American College of Chest Physicians official website", accessed: "2026-11-12"} + cite: {item_key: "N8RVIA96", title: "AMA RUC roster 2023 (saved copy): society row for PULMONARY DISEASE", accessed: "2026-11-12"} - key: ACR name: "American College of Radiology" org_type: specialty_society specialty: "DIAGNOSTIC RADIOLOGY" aliases: ["AMERICAN COLLEGE OF RADIOLOGY"] - cite: {url: "https://www.acr.org/", title: "American College of Radiology official website", accessed: "2026-11-12"} + cite: {item_key: "N8RVIA96", title: "AMA RUC roster 2023 (saved copy): society row for DIAGNOSTIC RADIOLOGY", accessed: "2026-11-12"} - key: AUA name: "American Urological Association" org_type: specialty_society specialty: "UROLOGY" aliases: ["AMERICAN UROLOGICAL ASSOCIATION"] - cite: {url: "https://www.auanet.org/", title: "American Urological Association official website", accessed: "2026-11-12"} + cite: {item_key: "N8RVIA96", title: "AMA RUC roster 2023 (saved copy): society row for UROLOGY", accessed: "2026-11-12"} - key: SVS name: "Society for Vascular Surgery" org_type: specialty_society specialty: "VASCULAR SURGERY" aliases: ["SOCIETY FOR VASCULAR SURGERY"] - cite: {url: "https://vascular.org/", title: "Society for Vascular Surgery official website", accessed: "2026-11-12"} + cite: {item_key: "N8RVIA96", title: "AMA RUC roster 2023 (saved copy): society row for VASCULAR SURGERY", accessed: "2026-11-12"} - key: SHM name: "Society of Hospital Medicine" org_type: specialty_society specialty: "HOSPITALIST" aliases: ["SOCIETY OF HOSPITAL MEDICINE"] - cite: {url: "https://www.hospitalmedicine.org/", title: "Society of Hospital Medicine official website", accessed: "2026-11-12"} + cite: {item_key: "S593THYQ", title: "AMA RUC roster 2025 (saved copy): specialty-label row for HOSPITALIST", accessed: "2026-11-12"} - key: ASSH name: "American Society for Surgery of the Hand" org_type: specialty_society specialty: "HAND SURGERY" aliases: ["AMERICAN SOCIETY FOR SURGERY OF THE HAND"] - cite: {url: "https://www.assh.org/", title: "American Society for Surgery of the Hand official website", accessed: "2026-11-12"} + cite: {item_key: "KRWZGMGI", title: "AMA RUC roster 2026 (saved copy): specialty-label row for HAND SURGERY", accessed: "2026-11-12"} - key: ACR-RHEUM name: "American College of Rheumatology" org_type: specialty_society specialty: "RHEUMATOLOGY" aliases: ["AMERICAN COLLEGE OF RHEUMATOLOGY"] - cite: {url: "https://rheumatology.org/", title: "American College of Rheumatology official website", accessed: "2026-11-12"} - - key: ASCO - name: "American Society of Clinical Oncology" - org_type: specialty_society - specialty: "ONCOLOGY" - aliases: ["AMERICAN SOCIETY OF CLINICAL ONCOLOGY"] - cite: {url: "https://www.asco.org/", title: "American Society of Clinical Oncology official website", accessed: "2026-11-12"} + cite: {item_key: "FGUVBVKJ", title: "AMA RUC roster 2022 (saved copy): society row for RHEUMATOLOGY", accessed: "2026-11-12"} - key: PRIMARY-CARE-SEAT name: "Primary care rotating-seat societies" org_type: specialty_society specialty: "PRIMARY CARE" aliases: ["PRIMARY CARE ROTATING SEAT"] - cite: {item_key: "KRWZGMGI", title: "AMA RUC composition page (2026 roster, saved copy): primary care seats rotate among societies", accessed: "2026-11-12"} + pseudo: true + cite: {item_key: "KRWZGMGI", title: "AMA RUC roster 2026 (saved copy): primary care additional rotating seat", accessed: "2026-11-12"} - key: IDSA name: "Infectious Diseases Society of America" org_type: specialty_society specialty: "INFECTIOUS DISEASE" aliases: ["INFECTIOUS DISEASES SOCIETY OF AMERICA"] - cite: {url: "https://www.idsociety.org/", title: "Infectious Diseases Society of America official website", accessed: "2026-11-12"} + cite: {item_key: "DJ2QP288", title: "AMA RUC roster 2019 (saved copy): society row for INFECTIOUS DISEASE", accessed: "2026-11-12"} - key: AGA name: "American Gastroenterological Association" org_type: specialty_society specialty: "GASTROENTEROLOGY" aliases: ["AMERICAN GASTROENTEROLOGICAL ASSOCIATION"] - cite: {url: "https://gastro.org/", title: "American Gastroenterological Association official website", accessed: "2026-11-12"} + cite: {item_key: "FGUVBVKJ", title: "AMA RUC roster 2022 (saved copy): society row for GASTROENTEROLOGY", accessed: "2026-11-12"} - key: ATS name: "American Thoracic Society" org_type: specialty_society specialty: "PULMONARY DISEASE" aliases: ["AMERICAN THORACIC SOCIETY"] - cite: {url: "https://site.thoracic.org/", title: "American Thoracic Society official website", accessed: "2026-11-12"} + cite: {item_key: "N8RVIA96", title: "AMA RUC roster 2023 (saved copy): society row for PULMONARY DISEASE", accessed: "2026-11-12"} - key: AMA name: "American Medical Association" org_type: professional_assoc @@ -571,7 +584,7 @@ orgs: name: "AHIP" org_type: trade_group aliases: ["AHIP", "AMERICAS HEALTH INSURANCE PLANS"] - cite: {url: "https://www.ahip.org/", title: "AHIP official website", accessed: "2026-11-12"} + cite: {url: "https://www.ahip.org/", title: "AHIP official website"} - key: MGMA name: "Medical Group Management Association" org_type: trade_group @@ -607,3 +620,16 @@ orgs: org_type: trade_group aliases: ["AMERICAN TELEMEDICINE ASSOCIATION"] cite: {url: "https://www.americantelemed.org/", title: "American Telemedicine Association official website", accessed: "2026-11-12"} + + - key: ONCOLOGY-SEAT + name: "Oncology seat societies" + org_type: specialty_society + specialty: "ONCOLOGY" + pseudo: true + aliases: ["ONCOLOGY SEAT"] + cite: {item_key: "KRWZGMGI", title: "AMA RUC roster 2026 (saved copy): oncology seat", accessed: "2026-11-12"} + +gaps: + - {source: "web:renalmd.org", note: "HTTP 403 to stack-pfs-dossier/1.0 on 2026-11-12; Renal Physicians Association site not read, so it is not cited as accessed"} + - {source: "web:asco.org", note: "HTTP 403 to stack-pfs-dossier/1.0 on 2026-11-12; American Society of Clinical Oncology site not read, so it is not cited as accessed"} + - {source: "web:ahip.org", note: "HTTP 403 to stack-pfs-dossier/1.0 on 2026-11-12; AHIP site not read, so it is not cited as accessed"} diff --git a/src/market/tables.py b/src/market/tables.py index d1140ee..ed48c5c 100644 --- a/src/market/tables.py +++ b/src/market/tables.py @@ -18,7 +18,7 @@ CREATE TABLE IF NOT EXISTS market.entity ( key VARCHAR, name VARCHAR, kind VARCHAR, cik VARCHAR, sic VARCHAR, sic_desc VARCHAR, status VARCHAR, ended_on DATE, successor VARCHAR, specialty VARCHAR, org_type VARCHAR, aliases VARCHAR, - source_url VARCHAR, item_key VARCHAR + source_url VARCHAR, item_key VARCHAR, pseudo BOOLEAN ); CREATE TABLE IF NOT EXISTS market.security ( entity_key VARCHAR, ticker VARCHAR, exchange VARCHAR, @@ -43,6 +43,8 @@ def ensure_tables(con: Any) -> None: for stmt in _DDL.strip().split(";"): if stmt.strip(): con.execute(stmt) + # a market.entity created before the pseudo flag existed + con.execute("ALTER TABLE market.entity ADD COLUMN IF NOT EXISTS pseudo BOOLEAN") @dataclass(frozen=True) @@ -61,6 +63,9 @@ class EntityRow: aliases: str = "" # normalised names joined by "|" source_url: str = "" item_key: str = "" + #: a stand-in for a seat held by rotating or unnamed societies; never + #: matched against lobbying or campaign-finance names + pseudo: bool = False @dataclass(frozen=True) @@ -147,6 +152,27 @@ def write_entities(con: Any, rows: Sequence[EntityRow]) -> int: return _insert(con, "market.entity", rows) +def retire_organizations(con: Any, keep: Iterable[str]) -> int: + """Delete organization entities (and their links) whose key is not in + *keep*; returns how many entities went.""" + ensure_tables(con) + keep = set(keep) + stale = [ + k + for (k,) in con.execute( + "SELECT key FROM market.entity WHERE kind = 'organization'" + ).fetchall() + if k not in keep + ] + for part in _chunks(stale, 500): + marks = ",".join("?" * len(part)) + con.execute(f"DELETE FROM market.entity WHERE key IN ({marks})", list(part)) + con.execute( + f"DELETE FROM market.entity_link WHERE entity_key IN ({marks})", list(part) + ) + return len(stale) + + def read_entities(con: Any, kind: str | None = None) -> list[EntityRow]: rows = _select( con, @@ -155,7 +181,10 @@ def read_entities(con: Any, kind: str | None = None) -> list[EntityRow]: "kind = ?" if kind else "", [kind] if kind else [], ) - return sorted((EntityRow(*r) for r in rows), key=lambda e: (e.kind, e.key)) + out = [] + for r in rows: + out.append(EntityRow(*r[:-1], pseudo=bool(r[-1]))) + return sorted(out, key=lambda e: (e.kind, e.key)) # ── security ───────────────────────────────────────────────────────── @@ -185,16 +214,24 @@ def read_securities(con: Any, entity_key: str | None = None) -> list[SecurityRow # ── entity_link ────────────────────────────────────────────────────── +def _delete_links(con: Any, keys: Sequence[tuple[str, str, str, str]]) -> None: + """Delete ``(basis, entity_key, scope, target)`` rows, one statement per + chunk.""" + for part in _chunks(list(keys), 400): + con.execute( + "DELETE FROM market.entity_link WHERE (basis, entity_key, scope, target) " + "IN (SELECT * FROM (VALUES " + + ", ".join(["(?, ?, ?, ?)"] * len(part)) + + "))", + [v for k in part for v in k], + ) + + def write_links(con: Any, rows: Sequence[LinkRow]) -> int: """Upsert by ``(basis, entity_key, scope, target)``: one basis never wipes another.""" ensure_tables(con) - for r in rows: - con.execute( - "DELETE FROM market.entity_link WHERE basis = ? AND entity_key = ? " - "AND scope = ? AND target = ?", - [r.basis, r.entity_key, r.scope, r.target], - ) + _delete_links(con, [(r.basis, r.entity_key, r.scope, r.target) for r in rows]) return _insert(con, "market.entity_link", rows) @@ -204,22 +241,16 @@ def retire_links( """Delete *basis* links of *entity_keys* that are not in *keep* (``(entity_key, scope, target)``). Returns how many were deleted.""" ensure_tables(con) - gone = 0 - for key in sorted(set(entity_keys)): + gone: list[tuple[str, str, str, str]] = [] + for part in _chunks(sorted(set(entity_keys)), 500): stored = con.execute( - "SELECT scope, target FROM market.entity_link " - "WHERE basis = ? AND entity_key = ?", - [basis, key], + "SELECT entity_key, scope, target FROM market.entity_link " + f"WHERE basis = ? AND entity_key IN ({','.join('?' * len(part))})", + [basis, *part], ).fetchall() - for scope, target in stored: - if (key, scope, target) not in keep: - con.execute( - "DELETE FROM market.entity_link WHERE basis = ? " - "AND entity_key = ? AND scope = ? AND target = ?", - [basis, key, scope, target], - ) - gone += 1 - return gone + gone += [(basis, k, s, t) for k, s, t in stored if (k, s, t) not in keep] + _delete_links(con, gone) + return len(gone) def read_links( diff --git a/tests/cli/test_market_cli.py b/tests/cli/test_market_cli.py index 30e09d4..236f97b 100644 --- a/tests/cli/test_market_cli.py +++ b/tests/cli/test_market_cli.py @@ -2,6 +2,7 @@ from __future__ import annotations +import json import re from datetime import date from pathlib import Path @@ -110,6 +111,27 @@ def _cache_offline(hoard: Path) -> None: if name.startswith("submissions_"): target = "CIK0001564406.json" (sec / "submissions" / target).write_bytes((FX / name).read_bytes()) + _cache_filings(hoard) + + +def _cache_filings(hoard: Path, companies=None) -> None: + """A hoarded filing per cited accession, holding exactly the quotes the + seed cites to it.""" + import html + + companies = companies or load_seed()[0] + quotes: dict[tuple[str, str], list[str]] = {} + for _who, c, cite in edgar.filing_cites(companies): + if cite.adsh: + quotes.setdefault((c.cik, cite.adsh), []).append(cite.quote) + for (cik, adsh), qs in quotes.items(): + p = hoard / "sec" / "filings" / cik / f"{adsh}.htm" + p.parent.mkdir(parents=True, exist_ok=True) + p.write_text( + "" + + "".join(f"

{html.escape(q)}

" for q in qs) + + "" + ) def _count(c, table): @@ -261,7 +283,8 @@ def _sub_for(cik: str) -> dict: def test_sic_sweep_registers_filers_and_sic_links(env, monkeypatch): - c, _, published, _ = env + c, _, published, hoard = env + _cache_filings(hoard) atom = (FX / "sic_8082.atom").read_bytes().replace(b"0001468328", b"0000000042") seen: list[str] = [] @@ -379,7 +402,12 @@ def test_gap_cleared_after_success(env): runner.invoke(app, ["market", "entities", "--offline", "--write"]).exit_code == 0 ) - assert [g.source for g in T.read_gaps(c)] == ["tiingo:prices"] + assert {g.source for g in T.read_gaps(c)} == { + "tiingo:prices", + "web:renalmd.org", + "web:asco.org", + "web:ahip.org", + } def test_gaps_command_lists_rows(env): @@ -425,3 +453,98 @@ def test_default_indirections_resolve_lazily(monkeypatch): assert mk._batch() == "aco" and mk._read() == "aco" and mk._store() == "store" mk._publish() assert calls == ["batch aco", "read aco", "bib", "pub aco"] + + +def test_entities_aborts_when_a_quote_is_not_in_the_filing(env): + c, _, published, hoard = env + _cache_offline(hoard) + victim = next(hoard.glob("sec/filings/*/*.htm")) + victim.write_text("

nothing the seed quotes

") + res = runner.invoke(app, ["market", "entities", "--offline", "--write"]) + assert res.exit_code == 1 and "quote error:" in res.output + assert published == [] + assert c.execute( + "SELECT count(*) FROM information_schema.tables WHERE table_schema = 'market'" + ).fetchone() == (0,) + + +def test_entities_aborts_when_a_cited_filing_is_not_hoarded(env): + c, _, published, hoard = env + _cache_offline(hoard) + next(hoard.glob("sec/filings/*/*.htm")).unlink() + res = runner.invoke(app, ["market", "entities", "--offline"]) + assert res.exit_code == 1 and "not hoarded" in res.output + + +def test_entities_fetches_cited_filings_online(env, monkeypatch): + c, _, _, hoard = env + _cache_offline(hoard) + victim = next(hoard.glob("sec/filings/*/*.htm")) + cik, adsh = victim.parent.name, victim.stem + body = victim.read_bytes() + victim.unlink() + (hoard / "sec" / "submissions" / f"CIK{cik}.json").write_text( + json.dumps( + _sub_for(cik) + | { + "filings": { + "recent": { + **_sub_for(cik)["filings"]["recent"], + "accessionNumber": [adsh, "Z"], + "primaryDocument": ["doc.htm", "z.htm"], + }, + "files": [], + } + } + ) + ) + seen = [] + + def serve(m): + seen.append(m.group(0)) + return httpx.Response(200, content=body) + + _online(monkeypatch, [(r"/Archives/edgar/data/\d+/\d+/doc\.htm", serve)]) + res = runner.invoke(app, ["market", "entities"]) + assert res.exit_code == 0, res.output + assert len(seen) == 1 and victim.exists() + + +def test_entities_manifest_and_ingest_log_sources(env): + c, _, _, hoard = env + _cache_offline(hoard) + assert ( + runner.invoke(app, ["market", "entities", "--offline", "--write"]).exit_code + == 0 + ) + manifest = hoard / "MANIFEST.jsonl" + assert manifest.exists() and manifest.read_text().count("\n") >= 6 + rows = c.execute( + "SELECT table_name, source_file, sha256 FROM cms.ingest_log WHERE module = 'market.edgar'" + ).fetchall() + assert len(rows) == 4 and all(sf and sha and len(sha) == 64 for _, sf, sha in rows) + + +def test_entities_records_unreachable_site_gaps_and_pseudo_orgs(env): + c, _, _, hoard = env + _cache_offline(hoard) + assert ( + runner.invoke(app, ["market", "entities", "--offline", "--write"]).exit_code + == 0 + ) + gaps = {g.source for g in T.read_gaps(c)} + assert {"web:renalmd.org", "web:asco.org", "web:ahip.org"} <= gaps + assert "sec-edgar:entities" not in gaps + pseudo = {e.key for e in T.read_entities(c, "organization") if e.pseudo} + assert pseudo == {"PRIMARY-CARE-SEAT", "ONCOLOGY-SEAT"} + + +def test_entities_retires_organizations_the_seed_dropped(env): + c, _, _, hoard = env + _cache_offline(hoard) + T.write_entities(c, [T.EntityRow("ASCO", "ASCO", "organization")]) + assert ( + runner.invoke(app, ["market", "entities", "--offline", "--write"]).exit_code + == 0 + ) + assert "ASCO" not in {e.key for e in T.read_entities(c, "organization")} diff --git a/tests/market/test_edgar.py b/tests/market/test_edgar.py index 906813a..585fff2 100644 --- a/tests/market/test_edgar.py +++ b/tests/market/test_edgar.py @@ -125,7 +125,7 @@ def test_delisted_seed_entity_kept_without_current_ticker(): assert e.key == "0000896262" and e.status == "acquired" secs = edgar.securities_for(sub, seed, tickers.get("0000896262", [])) assert secs[0] == edgar.SecurityRow( - "0000896262", "AMED", "NASDAQ", date(1994, 8, 18), date(2025, 8, 14), "seed" + "0000896262", "AMED", "NASDAQ", None, date(2025, 8, 14), "seed" ) assert len(secs) == 1 @@ -206,7 +206,7 @@ def test_curated_links_and_cite_registry(tmp_path): assert all(r.basis == "curated" and r.item_key for r in rows) spec = [r for r in rows if r.entity_key == "AAFP"] assert [(r.scope, r.target, r.cite_kind) for r in spec] == [ - ("specialty", "FAMILY PRACTICE", "url") + ("specialty", "FAMILY PRACTICE", "item_key") ] osh = [r for r in rows if r.entity_key == "0001564406"] assert {r.cite_kind for r in osh} == {"adsh"} @@ -317,3 +317,136 @@ def test_fetch_sic_ciks_pages_until_short(hoard, monkeypatch): def test_new_pacer_is_polite(): p = edgar.new_pacer() assert p.min_interval == 0.15 and edgar.PACE_SECONDS * 10 > 1.0 + + +# ── M12: quotes must occur in the hoarded filing ───────────────────── + +HTML = ( + "hidden

We bill the Medicare Physician " + "Fee Schedule’s rates.

" + "

Chronic care\n management — CCM.

" +) + + +def test_normalize_text_and_quote_in(): + text = edgar.normalize_text(HTML) + assert "hidden" not in text and "x()" not in text + assert "Medicare Physician Fee Schedule's rates." in text + assert edgar.quote_in(text, "Chronic care management - CCM.") + assert edgar.quote_in(text, "medicare physician fee schedule") is False + assert not edgar.quote_in(text, "") + + +def test_fetch_filing_hoards_records_manifest_and_reuses(hoard): + seen: list[str] = [] + cl = _client({"d.htm": HTML.encode()}, seen) + text = edgar.fetch_filing( + cl, "0000000007", "0001-23-000001", "d.htm", pacer=_Pacer() + ) + assert "Medicare Physician" in text + assert (hoard / "sec" / "filings" / "0000000007" / "0001-23-000001.htm").exists() + assert "/Archives/edgar/data/7/000123000001/d.htm" in seen[0] + again = edgar.fetch_filing(cl, "0000000007", "0001-23-000001", "", pacer=_Pacer()) + assert again == text and len(seen) == 1 + lines = [json.loads(x) for x in (hoard / "MANIFEST.jsonl").read_text().splitlines()] + assert len(lines) == 1 + assert {"url", "path", "sha256", "bytes", "fetched_at"} <= set(lines[0]) + assert lines[0]["path"] == "sec/filings/0000000007/0001-23-000001.htm" + + +def test_fetch_filing_unavailable(hoard): + assert ( + edgar.fetch_filing( + None, "0000000007", "A", "d.htm", pacer=_Pacer(), offline=True + ) + is None + ) + cl = _client({}, []) + assert edgar.fetch_filing(cl, "0000000007", "A", "", pacer=_Pacer()) is None + assert edgar.fetch_filing(cl, "0000000007", "A", "d.htm", pacer=_Pacer()) is None + + +def test_quote_errors_lists_unsupported_quotes(): + text = edgar.normalize_text(HTML) + ok = Cite(adsh="A", quote="Chronic care management - CCM.") + bad = Cite(adsh="A", quote="nothing like this") + co = SeedCompany( + "X", + "X", + "0000000007", + "listed", + None, + "", + (), + (), + (SeedLink("family", "CCM", bad),), + (), + ok, + ) + errs = edgar.quote_errors([co], {("0000000007", "A"): text}) + assert len(errs) == 1 and errs[0].startswith("X/family:CCM") + web = SeedCompany( + "W", + "W", + "0000000008", + "listed", + None, + "", + (), + (), + (), + (), + Cite(url="https://a/"), + ) + assert edgar.quote_errors([web], {}) == [] + gone = edgar.quote_errors([co], {}) + assert len(gone) == 2 and all("not hoarded" in e for e in gone) + + +def test_ama_guard_flags_an_eight_word_run(): + run = "one two three four five six seven eight nine" + assert edgar.shares_ama_run("we say " + run + " here", [run]) + assert not edgar.shares_ama_run("one two three four five six seven", [run]) + + +def _hoarded(cik, adsh): + p = http.hoard("sec", "filings", cik, f"{adsh}.htm") + return p if p.exists() else None + + +def test_shipped_quotes_occur_in_the_hoarded_filings(): + companies, _ = load_seed() + texts = {} + missing = [] + for who, c, cite in edgar.filing_cites(companies): + if not cite.adsh: + continue + p = _hoarded(c.cik, cite.adsh) + if p is None: + missing.append((who, cite.adsh)) + continue + texts[(c.cik, cite.adsh)] = edgar.normalize_text(p.read_text(errors="replace")) + if missing and not texts: + pytest.skip("no hoarded filings on this machine") + assert not missing, f"cited filings not hoarded: {missing[:5]}" + assert edgar.quote_errors(companies, texts) == [] + + +def test_shipped_quotes_share_no_run_with_ama_descriptors(): + import duckdb + + replica = http.hoard_root().parent / "replica" / "aco.ro.duckdb" + if not replica.exists(): + pytest.skip("no replica") + con = duckdb.connect(str(replica), read_only=True) + try: + descriptors = [ + r[0] + for r in con.execute("SELECT descriptor FROM pfs.cpt_code").fetchall() + if r[0] + ] + finally: + con.close() + companies, _ = load_seed() + for who, _c, cite in edgar.filing_cites(companies): + assert not edgar.shares_ama_run(cite.quote, descriptors), (who, cite.quote) diff --git a/tests/market/test_http.py b/tests/market/test_http.py index 6d1b3ca..7747dea 100644 --- a/tests/market/test_http.py +++ b/tests/market/test_http.py @@ -2,6 +2,8 @@ from __future__ import annotations +import json + import httpx import pytest @@ -169,3 +171,32 @@ def test_save_never_overwrites(tmp_path): other = http.save(p, b"2") assert other != p and p.read_bytes() == b"1" and other.read_bytes() == b"2" assert http.newest(p).read_bytes() in (b"1", b"2") + + +def test_manifest_records_each_download_once(monkeypatch, tmp_path): + monkeypatch.setattr(http, "hoard_root", lambda: tmp_path / "market") + f = tmp_path / "market" / "sec" / "a.json" + f.parent.mkdir(parents=True) + f.write_bytes(b"abc") + http.manifest(f, "https://x/a.json") + http.manifest(f, "https://x/a.json") + f2 = f.with_name("a.1234abcd.json") + f2.write_bytes(b"abd") + http.manifest(f2, "https://x/a.json") + lines = [ + json.loads(x) + for x in (tmp_path / "market" / "MANIFEST.jsonl").read_text().splitlines() + ] + assert [l["path"] for l in lines] == ["sec/a.json", "sec/a.1234abcd.json"] + assert lines[0]["bytes"] == 3 and len(lines[0]["sha256"]) == 64 + + +def test_manifest_dedupes_against_lines_from_an_earlier_run(monkeypatch, tmp_path): + monkeypatch.setattr(http, "hoard_root", lambda: tmp_path / "market") + f = tmp_path / "market" / "a.json" + f.parent.mkdir(parents=True) + f.write_bytes(b"abc") + http.manifest(f, "https://x/a.json") + http._MANIFESTS.clear() # a new process + http.manifest(f, "https://x/a.json") + assert len((tmp_path / "market" / "MANIFEST.jsonl").read_text().splitlines()) == 1 diff --git a/tests/market/test_seed.py b/tests/market/test_seed.py index 62cd710..c06d9d1 100644 --- a/tests/market/test_seed.py +++ b/tests/market/test_seed.py @@ -231,3 +231,90 @@ def test_alias_match_exact_and_prefix(): assert not S.alias_match("AMEDISYSTEMS", ["AMEDISYS"], prefix=True) assert not S.alias_match("HCA SOMETHING", ["HCA"], prefix=True) assert not S.alias_match("AMEDISYS HOLDING", ["AMEDISYS"], prefix=False) + + +# ── M12: citations must support what they cite ────────────────────── + + +def _filing_cites(companies): + for c in companies: + yield f"{c.handle}", c.cite + for link in c.links: + yield f"{c.handle}/{link.scope}:{link.target}", link.cite + for s in c.securities: + if s.cite: + yield f"{c.handle}/{s.ticker}", s.cite + + +def test_filing_cite_requires_quote(tmp_path): + body = COMPANY.format(extra='cite: {adsh: "0001-23-000001"}') + with pytest.raises(ValueError, match="^XCO: .*quote"): + S.load_seed(_write(tmp_path, body)) + + +def test_link_filing_cite_requires_quote(tmp_path): + body = COMPANY.format( + extra='cite: {adsh: "0001-23-000001", quote: "q"}\n links:\n' + ' - {scope: program, target: PFS, cite: {adsh: "0001-23-000001"}}' + ) + with pytest.raises(ValueError, match="^XCO/program: .*quote"): + S.load_seed(_write(tmp_path, body)) + + +def test_security_cite_and_org_pseudo_parse(tmp_path): + body = ( + COMPANY.format( + extra='cite: {url: "u"}\n securities:\n - {ticker: XX, exchange: NYSE, ' + 'valid_from: 2021-06-04, cite: {adsh: "0001-21-000002", quote: "renamed"}}' + ) + + "orgs:\n - {key: P, name: P, org_type: specialty_society, pseudo: true, " + 'cite: {item_key: "K"}}\n' + ) + companies, orgs = S.load_seed(_write(tmp_path, body)) + (sec,) = companies[0].securities + assert sec.cite.adsh == "0001-21-000002" and sec.cite.quote == "renamed" + assert orgs[0].pseudo is True + + +def test_shipped_seed_every_filing_cite_has_quote(): + companies, _ = S.load_seed() + n = 0 + for who, cite in _filing_cites(companies): + if cite.adsh: + n += 1 + assert cite.quote, f"{who}: filing cite without quote" + assert n >= 60 + + +def test_shipped_specialty_societies_cite_roster_items(): + _, orgs = S.load_seed() + for o in orgs: + if o.specialty: + assert o.cite.item_key, f"{o.key}: specialty link must cite a roster item" + pseudo = {o.key for o in orgs if o.pseudo} + assert pseudo == {"PRIMARY-CARE-SEAT", "ONCOLOGY-SEAT"} + assert "ASCO" not in {o.key for o in orgs} + + +def test_shipped_unreachable_sites_are_gaps_and_never_accessed(): + _, orgs = S.load_seed() + gaps = {g.source for g in S.load_gaps()} + assert {"web:renalmd.org", "web:asco.org", "web:ahip.org"} <= gaps + ahip = next(o for o in orgs if o.key == "AHIP") + assert ahip.cite.accessed == "" + for o in orgs: + for host in ("renalmd.org", "asco.org"): + assert host not in o.cite.url + + +def test_shipped_ticker_windows_come_from_filing_evidence(): + companies, _ = S.load_seed() + by = {c.handle: c for c in companies} + (cano,) = by["CANO"].securities + assert cano.valid_from == date(2021, 6, 4) + assert cano.cite.adsh == "0001193125-21-186694" + assert by["CANO"].cite.adsh == "0001193125-24-023512" + (ci,) = by["CI"].securities + assert ci.valid_from == date(2018, 12, 21) and ci.cite.adsh + (md,) = by["MD"].securities + assert md.cite.adsh and md.valid_from is not None diff --git a/tests/market/test_tables.py b/tests/market/test_tables.py index ae11c61..81254df 100644 --- a/tests/market/test_tables.py +++ b/tests/market/test_tables.py @@ -194,3 +194,64 @@ def test_state_codes(): codes = T.state_codes(c) assert codes["26"] == codes["MI"] == codes["Michigan"] == ("26", "MI", "Michigan") c.close() + + +def test_entity_pseudo_flag_roundtrips(con): + pseudo = T.EntityRow("P", "P", "organization", pseudo=True) + T.write_entities(con, [pseudo, T.EntityRow("Q", "Q", "organization")]) + assert {e.key: e.pseudo for e in T.read_entities(con)} == {"P": True, "Q": False} + + +def test_ensure_tables_adds_pseudo_to_an_existing_entity_table(): + c = duckdb.connect(":memory:") + c.execute("CREATE SCHEMA market") + c.execute( + "CREATE TABLE market.entity (key VARCHAR, name VARCHAR, kind VARCHAR, cik VARCHAR, " + "sic VARCHAR, sic_desc VARCHAR, status VARCHAR, ended_on DATE, successor VARCHAR, " + "specialty VARCHAR, org_type VARCHAR, aliases VARCHAR, source_url VARCHAR, item_key VARCHAR)" + ) + T.ensure_tables(c) + T.write_entities(c, [T.EntityRow("P", "P", "organization", pseudo=True)]) + assert T.read_entities(c)[0].pseudo is True + c.close() + + +def test_write_links_batches_its_deletes(con): + rows = [ + T.LinkRow("1", "sector", str(i), "sic", "sector", "url", "u") + for i in range(1200) + ] + T.write_links(con, rows) + seen = [] + + class Spy: + def __init__(self, c): + self.c = c + + def execute(self, sql, *a): + seen.append(sql.split()[0]) + return self.c.execute(sql, *a) + + T.write_links(Spy(con), rows) + assert seen.count("DELETE") <= 4 and len(T.read_links(con)) == 1200 + + +def test_retire_organizations_removes_entities_and_links(con): + T.write_entities( + con, + [ + T.EntityRow("A", "A", "organization"), + T.EntityRow("B", "B", "organization"), + ENTITY, + ], + ) + T.write_links( + con, + [ + T.LinkRow("A", "specialty", "X", "curated", "curated", "item_key", "K"), + T.LinkRow("B", "specialty", "Y", "curated", "curated", "item_key", "K"), + ], + ) + assert T.retire_organizations(con, ["A"]) == 1 + assert [e.key for e in T.read_entities(con)] == [ENTITY.key, "A"] + assert [l.entity_key for l in T.read_links(con)] == ["A"]