new-site/data/hc_campaigns
justin 9e155d214c healthcare: cite REAL NPPES last_updated date in 'outdated' email
The NPPES 'may be out of date' email previously asserted staleness with no
per-record evidence (softened earlier to a generic 'periodic review required').
NPPES is fully public and every record carries basic.last_updated, so we now
cite the actual government date the provider can verify on the registry.

- enrich_nppes_last_updated.py: joins real basic.last_updated /
  enumeration_date / deactivated onto the institutional list via a cached,
  resumable per-NPI crawl (no batch endpoint exists). Adds nppes_last_updated,
  nppes_enumeration, nppes_years_stale, nppes_deactivated.
- cron: new 'nppes_stale' selector mails ONLY records >= 3yrs stale (env
  HC_NPPES_STALE_MIN_YEARS) and excludes deactivated NPIs; empty date => no
  match, so we never claim staleness without the government date to back it.
- template: headline + official-record card now show the real last_updated
  date and ~N-years-ago, sourced to npiregistry.cms.hhs.gov.
- attribs + test SAMPLE expose the new fields; verified render + plaintext.
2026-06-20 15:21:15 -05:00
..
hc_clia_renewal.html healthcare emails: remove prices, fix click tracking, de-risk claims 2026-06-20 09:37:02 -05:00
hc_compliance_bundle.html healthcare emails: remove prices, fix click tracking, de-risk claims 2026-06-20 09:37:02 -05:00
hc_npi_reactivation.html healthcare emails: remove prices, fix click tracking, de-risk claims 2026-06-20 09:37:02 -05:00
hc_nppes_outdated.html healthcare: cite REAL NPPES last_updated date in 'outdated' email 2026-06-20 15:21:15 -05:00
hc_oig_screening.html healthcare emails: remove prices, fix click tracking, de-risk claims 2026-06-20 09:37:02 -05:00
hc_revalidation_due_soon.html healthcare emails: remove prices, fix click tracking, de-risk claims 2026-06-20 09:37:02 -05:00
hc_revalidation_overdue.html healthcare emails: remove prices, fix click tracking, de-risk claims 2026-06-20 09:37:02 -05:00
hc_revalidation_overdue_personal.html healthcare emails: remove prices, fix click tracking, de-risk claims 2026-06-20 09:37:02 -05:00
hc_revalidation_personal.html healthcare emails: remove prices, fix click tracking, de-risk claims 2026-06-20 09:37:02 -05:00
hc_revalidation_turnover.html healthcare emails: remove prices, fix click tracking, de-risk claims 2026-06-20 09:37:02 -05:00