|
48 | 48 | "census-stc": "CENSUS_STC", |
49 | 49 | "usda-snap": "USDA_SNAP", |
50 | 50 | "cms-aca": "CMS_ACA", |
| 51 | + "cms-medicare": "CMS_MEDICARE", |
51 | 52 | "cms-medicaid": "CMS_MEDICAID", |
| 53 | + "federal-reserve": "FEDERAL_RESERVE", |
52 | 54 | "hhs-acf-liheap": "HHS_ACF_LIHEAP", |
53 | 55 | "hhs-acf-tanf": "HHS_ACF_TANF", |
54 | 56 | } |
|
134 | 136 | "ssi_payments": "ssi", |
135 | 137 | "ssi_total_payments": "ssi", |
136 | 138 | "tanf_cash_assistance": "tanf", |
| 139 | + "medicare_part_b_premiums": "medicare_part_b_premiums", |
| 140 | + "net_worth": "net_worth", |
137 | 141 | } |
138 | 142 |
|
139 | 143 | ARCH_SELF_DOMAIN_AMOUNT_VARIABLES = frozenset( |
|
408 | 412 | "self_employed_pension_contribution_ald", |
409 | 413 | "AMOUNT", |
410 | 414 | ), |
| 415 | + "federal_reserve.z1.households_nonprofits_net_worth": ( |
| 416 | + "net_worth", |
| 417 | + "AMOUNT", |
| 418 | + ), |
| 419 | + "cms_medicare.part_b_premium_income": ( |
| 420 | + "medicare_part_b_premiums", |
| 421 | + "AMOUNT", |
| 422 | + ), |
411 | 423 | "census_decennial.resident_population": ("population", "COUNT"), |
412 | 424 | "census_decennial.occupied_housing_units": ("household_count", "COUNT"), |
413 | 425 | "census_pep.resident_population": ("population", "COUNT"), |
|
570 | 582 | ARCH_FACT_DOMAIN_CONSTRAINTS = { |
571 | 583 | "all_individual_income_tax_returns": (("is_tax_filer", "==", "1"),), |
572 | 584 | "form_w2_items": (), |
| 585 | + "household_balance_sheet": (), |
573 | 586 | "individual_income_tax_returns": (("is_tax_filer", "==", "1"),), |
574 | 587 | "individual_income_tax_returns_excluding_dependents": ( |
575 | 588 | ("is_dependent", "==", "0"), |
|
584 | 597 | "aca_marketplace_effectuated_enrollment": (), |
585 | 598 | "aca_marketplace_qhp_selections": (), |
586 | 599 | "medicaid_chip_enrollment": (), |
| 600 | + "medicare_financing": (), |
587 | 601 | "national_health_expenditures": (), |
588 | 602 | "personal_current_transfer_receipts": (), |
589 | 603 | "personal_income": (), |
|
607 | 621 | ARCH_IGNORED_FACT_CONSTRAINT_VARIABLES = frozenset( |
608 | 622 | { |
609 | 623 | "administering_entity", |
| 624 | + "amount_basis", |
610 | 625 | "bea_nipa.series_code", |
611 | 626 | "bea_regional.geo_name", |
612 | 627 | "bea_regional.line_code", |
613 | 628 | "bea_regional.table_name", |
| 629 | + "medicare.financing_component", |
| 630 | + "medicare.part", |
614 | 631 | "program", |
615 | 632 | } |
616 | 633 | ) |
|
655 | 672 | "tip_income": EntityType.PERSON, |
656 | 673 | "traditional_401k_contributions": EntityType.PERSON, |
657 | 674 | "unemployment_compensation": EntityType.PERSON, |
| 675 | + "medicare_part_b_premiums": EntityType.PERSON, |
658 | 676 | "medicaid": EntityType.PERSON, |
| 677 | + "net_worth": EntityType.HOUSEHOLD, |
659 | 678 | "social_security": EntityType.PERSON, |
660 | 679 | "social_security_dependents": EntityType.PERSON, |
661 | 680 | "social_security_disability": EntityType.PERSON, |
|
809 | 828 | "income_tax_positive": "income_tax_liability", |
810 | 829 | "income_tax_before_credits": "income_tax_before_credits_amount", |
811 | 830 | "interest_deduction": "interest_paid_deduction_amount", |
| 831 | + "medicare_part_b_premiums": "medicare_part_b_premiums", |
812 | 832 | "net_capital_gains": "net_capital_gains_amount", |
| 833 | + "net_worth": "net_worth", |
813 | 834 | "real_estate_taxes": "real_estate_taxes_amount", |
814 | 835 | "roth_401k_contributions": "roth_401k_contributions", |
815 | 836 | "self_employed_pension_contribution_ald": ( |
|
886 | 907 | "child_support_expense", |
887 | 908 | "child_support_received", |
888 | 909 | "health_insurance_premiums_without_medicare_part_b", |
889 | | - "medicare_part_b_premiums", |
890 | | - "net_worth", |
891 | 910 | "other_medical_expenses", |
892 | 911 | "over_the_counter_health_expenses", |
893 | 912 | "rent", |
@@ -5189,10 +5208,12 @@ def _arch_gap_queue_sort_key(row: ArchTargetGapQueueRow) -> tuple[Any, ...]: |
5189 | 5208 | "CENSUS_ACS": 2, |
5190 | 5209 | "CMS_ACA": 3, |
5191 | 5210 | "CMS_MEDICAID": 4, |
5192 | | - "USDA_SNAP": 5, |
5193 | | - "SSA": 6, |
5194 | | - "HHS_ACF_TANF": 7, |
5195 | | - "HHS_ACF_LIHEAP": 8, |
| 5211 | + "CMS_MEDICARE": 5, |
| 5212 | + "USDA_SNAP": 6, |
| 5213 | + "SSA": 7, |
| 5214 | + "HHS_ACF_TANF": 8, |
| 5215 | + "HHS_ACF_LIHEAP": 9, |
| 5216 | + "FEDERAL_RESERVE": 10, |
5196 | 5217 | }.get(str(row.expected_source), 99) |
5197 | 5218 | return ( |
5198 | 5219 | row.covered, |
@@ -5238,6 +5259,10 @@ def _arch_gap_expected_source(cell: dict[str, Any]) -> str | None: |
5238 | 5259 | return "SSA" |
5239 | 5260 | if variable == "state_income_tax": |
5240 | 5261 | return "CENSUS_STC" |
| 5262 | + if variable == "medicare_part_b_premiums": |
| 5263 | + return "CMS_MEDICARE" |
| 5264 | + if variable == "net_worth": |
| 5265 | + return "FEDERAL_RESERVE" |
5241 | 5266 | if variable == "person_count": |
5242 | 5267 | if _normalize_geo_level(cell.get("geo_level")) in {"sldu", "sldl"}: |
5243 | 5268 | return "CENSUS_DECENNIAL" |
@@ -5483,6 +5508,10 @@ def _arch_gap_expected_source_table( |
5483 | 5508 | return "CMS Marketplace Open Enrollment public-use files" |
5484 | 5509 | if expected_source == "CMS_MEDICAID": |
5485 | 5510 | return "CMS Medicaid enrollment and expenditure reports" |
| 5511 | + if expected_source == "CMS_MEDICARE": |
| 5512 | + return "CMS Medicare Trustees Report Part B premium income" |
| 5513 | + if expected_source == "FEDERAL_RESERVE": |
| 5514 | + return "Federal Reserve Financial Accounts Z.1 household net worth" |
5486 | 5515 | if expected_source == "SSA": |
5487 | 5516 | return "SSA Annual Statistical Supplement" |
5488 | 5517 | if expected_source == "HHS_ACF_TANF": |
|
0 commit comments