In this task, you are given text for US Congressional and California state bills, your task is to generate a summary for this bill.

Input: Consider Input: SECTION 1. CREDIT FOR CERTAIN HOME PURCHASES.

(a) Allowance of Credit.--Subpart A of part IV of subchapter A of
chapter 1 of the Internal Revenue Code of 1986 (relating to refundable
credits) is amended by inserting after section 25D the following new
section:

''SEC. 25E. CREDIT FOR CERTAIN HOME PURCHASES.

''(a) Allowance of Credit.--In the case of an individual who
purchases a principal residence in the United States during the 12-
month period beginning on the date of the enactment of this section,
there shall be allowed to the taxpayer as a credit against the tax
imposed by this chapter for the taxable year an amount equal to 10
percent of the purchase price of the residence.
''(b) Limitations.--
''(1) Dollar limitation.--The credit allowed under
subsection (a) shall not exceed $10,000.
''(2) Denial of credit for residences acquired with
nonconforming loans.--No credit shall be allowed under
subsection (a) with respect to the purchase of any residence if
the aggregate acquisition indebtedness (as defined in section
163(h)(3)(B)) with respect to such residence exceeds the
limitation on the maximum original principal obligation of a
mortgage that may be purchased by the Federal Home Loan
Mortgage Corporation (as such limitation is in effect at the
time of such purchase).
''(3) Limitation based on amount of tax.--In the case of a
taxable year to which section 26(a)(2) does not apply, the
credit allowed under subsection (a) for any taxable year shall
not exceed the excess of--
''(A) the sum of the regular tax liability (as
defined in section 26(b)) plus the tax imposed by
section 55, over
''(B) the sum of the credits allowable under this
subpart (other than this section) for the taxable year.
''(4) One-time only.--
''(A) In general.--If a credit is allowed under
this section in the case of any individual (and such
individual's spouse, if married) with respect to the
purchase of any principal residence, no credit shall be
allowed under this section in any taxable year with
respect to the purchase of any other principal
residence by such individual or a spouse of such
individual.
''(B) Joint purchase.--In the case of a purchase of
a principal residence by 2 or more unmarried
individuals or by 2 married individuals filing
separately, no credit shall be allowed under this
section if a credit under this section has been allowed
to any of such individuals in any taxable year with
respect to the purchase of any other principal
residence.
''(c) Carryforward of Unused Credit.--
''(1) Rule for years in which all personal credits allowed
against regular and alternative minimum tax.--In the case of a
taxable year to which section 26(a)(2) applies, if the credit
allowable under subsection (a) exceeds the limitation imposed
by section 26(a)(2) for such taxable year reduced by the sum of
the credits allowable under this subpart (other than this
section), such excess shall be carried to the succeeding
taxable year and added to the credit allowable under subsection
(a) for such succeeding taxable year.
''(2) Rule for other years.--In the case of a taxable year
to which section 26(a)(2) does not apply, if the credit
allowable under subsection (a) exceeds the limitation imposed
by subsection (b)(3) for such taxable year, such excess shall
be carried to the succeeding taxable year and added to the
credit allowable under subsection (a) for such succeeding
taxable year.
''(3) Limitation.--No credit may be carried forward under
this subsection to any taxable year following the first taxable
year after the taxable year in which the credit arose.
''(d) Definitions and Special Rules.--For purposes of this
section--
''(1) Allocation of dollar limit.--
''(A) Married individuals filing separately.--In
the case of a married individual filing a separate
return, subsection (b)(1) shall be applied by
substituting '$5,000' for '$10,000'.
''(B) Other individuals.--If two or more
individuals who are not married purchase a principal
residence, the amount of the credit allowed under
subsection (a) shall be allocated among such
individuals in such manner as the Secretary may
prescribe, except that the total amount of the credits
allowed to all such individuals shall not exceed
$10,000.
''(2) Principal residence.--The term 'principal residence'
has the same meaning as when used in section 121.
''(3) Purchase.--
''(A) In general.--The term 'purchase' means any
acquisition, but only if--
''(i) the property is not acquired from a
person related to the person acquiring it, and
''(ii) the basis of the property in the
hands of the person acquiring it is not
determined--
''(I) in whole or in part by
reference to the adjusted basis of such
property in the hands of the person
from whom acquired, or
''(II) under section 1014(a)
(relating to property acquired from a
decedent).
''(B) Construction.--A residence which is
constructed by the taxpayer shall be treated as
purchased by the taxpayer on the date the taxpayer
first occupies such residence.
''(4) Purchase price.--The term 'purchase price' means the
adjusted basis of the principal residence on the date such
residence is purchased.
''(5) Related persons.--A person shall be treated as
related to another person if the relationship between such
persons would result in the disallowance of losses under
section 267 or 707(b) (but, in applying section 267(b) and (c)
for purposes of this section, paragraph (4) of section 267(c)
shall be treated as providing that the family of an individual
shall include only his spouse, ancestors, and lineal
descendants).
''(e) Exceptions.--No credit under subsection (a) shall be allowed
to any taxpayer for any taxable year with respect to the purchase of a
residence if--
''(1) a credit under section 1400C (relating to first-time
homebuyer in the District of Columbia) is allowable to the
taxpayer (or the taxpayer's spouse) for such taxable year or
any prior taxable year,
''(2) the taxpayer is a nonresident alien, or
''(3) the taxpayer disposes of such residence (or such
residence ceases to be the principal residence of the taxpayer
(and, if married, the taxpayer's spouse)) before the close of
such taxable year.
''(f) Reporting Requirement.--Rules similar to the rules of section
1400C(f) (as so in effect) shall apply.
''(g) Basis Adjustment.--For purposes of this subtitle, if a credit
is allowed under this section with respect to the purchase of any
residence, the basis of such residence shall be reduced by the amount
of the credit so allowed.
''(h) Application.--This section shall not apply to any taxable
year beginning after December 31, 2009.''.
(b) Conforming Amendments.--
(1) Section 23(c)(1) of such Code is amended by striking
''25D and 1400C'' and inserting ''25D, 25E, and 1400C''.
(2) Section 25D(c)(2) of such Code is amended by striking
''and 25B'' and inserting ''25B, and 25E''.
(3) Section 1400C(d)(1) of such Code is amended by striking
''section 25D'' and inserting ''sections 25D and 25E''.
(c) Clerical Amendment.--The table of sections for subpart A of
part IV of subchapter A of chapter 1 of the Internal Revenue Code of
1986 is amended by inserting after the item relating to section 25D the
following new item:

''Sec. 25E. Credit for certain home purchases.''.
(d) Effective Date.--The amendments made by this section shall
apply with respect to residences purchased after the date of the
enactment of this Act in taxable years ending after such date.

Output: Amends the Internal Revenue Code to allow individual taxpayers a one-time refundable tax credit for up to 10% of the purchase price of a principal residence purchased in the United States within the 12-month period beginning on the date of enactment of this Act. Limits the dollar amount of such credit to $10,000. Terminates such credit after 2009.

Input: Consider Input: SECTION 1. SHORT TITLE.

This Act may be cited as the ''Medicare Spending Transparency Act
of 2011''.

SEC. 2. PUBLIC AVAILABILITY OF AGGREGATE DATA ON MEDICARE PROVIDERS OF
SERVICES AND SUPPLIERS.

(a) Purpose.--The purpose of this section is to make aggregate
information about providers of services and suppliers under the
Medicare program under title XVIII of the Social Security Act (42
U.S.C. 1395 et seq.) publicly available and to provide a new level of
transparency in such program.
(b) Public Availability.--Section 1128J of the Social Security Act
(42 U.S.C. 1320a-7k) is amended by adding at the end the following new
subsection:
''(f) Public Availability of Certain Medicare Data.--
''(1) In general.--The Secretary shall, to the extent
consistent with applicable information, privacy, security, and
disclosure laws, including the regulations promulgated under
the Health Insurance Portability and Accountability Act of 1996
and section 552a of title 5, United States Code, make available
to the public on the Internet website of the Centers for
Medicare & Medicaid Services the following data with respect to
title XVIII:
''(A) A complete list of the providers of services
and suppliers participating in the program under such
title, including the business address of such providers
of services and suppliers.
''(B) Aggregate information about each such
provider of services and supplier, including--
''(i) the total number of individuals
furnished items or services by the provider of
services or supplier for which payment was made
under such title during the preceding year;
''(ii) the number of unique patient
encounters conducted by the provider of
services or supplier for which payment was made
under such title during the preceding year;
''(iii) the average number of codes billed
under such title by the provider of services of
supplier per patient encounter during the
preceding year;
''(iv) the total amount paid to such
provider of services or supplier under such
title during the preceding year;
''(v) the top 50 billing codes on claims
paid under such title to the provider of
services or supplier during the preceding year,
as determined by volume, including a
description of such codes;
''(vi) the top 50 billing codes on such
claims paid during such year, as determined by
dollar amount, including a description of such
codes; and
''(vii) the top 50 diagnosis and procedure
code pairs on such claims paid during such
year, as determined by volume, including a
description of such codes.
''(2) Implementation.--Not later than 1 year after the date
of enactment of the Medicare Spending Transparency Act of 2011,
the Secretary shall promulgate regulations to carry out this
subsection.''.

SEC. 3. ACCESS TO MEDICARE CLAIMS AND PAYMENT DATA BY QUALIFIED
INDIVIDUALS AND GROUPS.

(a) Purpose.--The purpose of this section is to allow qualified
individuals and groups access to information on claims and payment data
under the Medicare program for purposes of conducting health research
and detecting fraud under such program.
(b) Access to Medicare Claims and Payment Data by Qualified
Individuals and Groups.--Section 1128J of the Social Security Act (42
U.S.C. 1320a-7k), as amended by section 2, is amended by adding at the
end the following new subsection:
''(g) Access to Medicare Claims and Payment Data by Qualified
Individuals and Groups.--
''(1) In general.--For purposes of conducting health
research and detecting fraud under title XVIII, and to the
extent consistent with applicable information, privacy,
security, and disclosure laws, including the regulations
promulgated under the Health Insurance Portability and
Accountability Act of 1996 and section 552a of title 5, United
States Code, and subject to any information systems security
requirements under such laws or otherwise required by the
Secretary, a qualified individual or group shall have access to
claims and payment data of the Department of Health and Human
Services and its contractors related to title XVIII.
Notwithstanding any other provision of law, such data shall
include the identity of individual providers of services and
suppliers under such title.
''(2) Definition of qualified individual or group.--
''(A) In general.--In this subsection, the term
'qualified individual or group' means an individual or
entity that the Secretary has determined, in accordance
with subparagraph (B), has relevant experience,
knowledge, and technical expertise in medicine,
statistics, health care billing, practice patterns,
health care fraud detection, and analysis to use data
provided to the individual or the entity under this
subsection in an appropriate, responsible, and ethical
manner and for the purposes described in paragraph (1).
''(B) Procedures.--The Secretary shall establish
procedures for determining, in a timely manner, whether
an individual or entity is a qualified individual or
group.
''(3) Procedures.--The Secretary shall establish procedures
for the storage and use of data provided to a qualified
individual or group under this subsection. Such procedures
shall ensure that, in the case where the qualified individual
or group publishes an analysis of such data (or any analysis
using such data), the qualified individual or group discloses
the following information (in a form and manner, and at a time,
specified by the Secretary):
''(A) The name of the qualified individual or
group.
''(B) The sources of any funding for the qualified
individual or group.
''(C) Any employer or other relevant affiliations
of the qualified individual or group.
''(D) The data analysis methods used by the
qualified individual or group in the analysis
involved.''.

Output: Medicare Spending Transparency Act of 2011 - Amends title XI of the Social Security Act (SSA) to direct the Secretary of Health and Human Services (HHS), consistent with applicable information, privacy, security, and disclosure laws, to make public on the Internet website of the Centers for Medicare and Medicaid Services the following data with respect to SSA title XVIII (Medicare): (1) a complete list of service providers and suppliers participating in the Medicare program, including their business addresses; and (2) certain aggregate information about each provider and supplier.

Entitles a qualified individual or group, for health research and fraud detection purposes, to access to Medicare claims and payment data of both HHS and its contractors. Directs the Secretary to establish procedures for the storage and use of data provided to such an individual or group.

Input: Consider Input: SECTION 1. SHORT TITLE.

This Act may be cited as the ''Prioritizing the Most Vulnerable
Over Lottery Winners Act of 2017''.

SEC. 2. TREATMENT OF LOTTERY WINNINGS AND OTHER LUMP-SUM INCOME FOR
PURPOSES OF INCOME ELIGIBILITY UNDER MEDICAID.

(a) In General.--Section 1902 of the Social Security Act (42 U.S.C.
1396a) is amended--
(1) in subsection (a)(17), by striking ''(e)(14), (e)(14)''
and inserting ''(e)(14), (e)(15)''; and
(2) in subsection (e)--
(A) in paragraph (14) (relating to modified
adjusted gross income), by adding at the end the
following new subparagraph:
''(J) Treatment of certain lottery winnings and
income received as a lump sum.--
''(i) In general.--In the case of an
individual who is the recipient of qualified
lottery winnings (pursuant to lotteries
occurring on or after January 1, 2018) or
qualified lump sum income (received on or after
such date) and whose eligibility for medical
assistance is determined based on the
application of modified adjusted gross income
under subparagraph (A), a State shall, in
determining such eligibility, include such
winnings or income (as applicable) as income
received--
''(I) in the month in which such
winnings or income (as applicable) is
received if the amount of such winnings
or income is less than $80,000;
''(II) over a period of 2 months if
the amount of such winnings or income
(as applicable) is greater than or
equal to $80,000 but less than $90,000;
''(III) over a period of 3 months
if the amount of such winnings or
income (as applicable) is greater than
or equal to $90,000 but less than
$100,000; and
''(IV) over a period of 3 months
plus 1 additional month for each
increment of $10,000 of such winnings
or income (as applicable) received, not
to exceed a period of 120 months (for
winnings or income of $1,260,000 or
more), if the amount of such winnings
or income is greater than or equal to
$100,000.
''(ii) Counting in equal installments.--For
purposes of subclauses (II), (III), and (IV) of
clause (i), winnings or income to which such
subclause applies shall be counted in equal
monthly installments over the period of months
specified under such subclause.
''(iii) Hardship exemption.--An individual
whose income, by application of clause (i),
exceeds the applicable eligibility threshold
established by the State, shall continue to be
eligible for medical assistance to the extent
that the State determines, under procedures
established by the State (in accordance with
standards specified by the Secretary), that the
denial of eligibility of the individual would
cause an undue medical or financial hardship as
determined on the basis of criteria established
by the Secretary.
''(iv) Notifications and assistance
required in case of loss of eligibility.--A
State shall, with respect to an individual who
loses eligibility for medical assistance under
the State plan (or a waiver of such plan) by
reason of clause (i)--
''(I) before the date on which the
individual loses such eligibility,
inform the individual--
''(aa) of the individual's
opportunity to enroll in a
qualified health plan offered
through an Exchange established
under title I of the Patient
Protection and Affordable Care
Act during the special
enrollment period specified in
section 9801(f)(3) of the
Internal Revenue Code of 1986
(relating to loss of Medicaid
or CHIP coverage); and
''(bb) of the date on which
the individual would no longer
be considered ineligible by
reason of clause (i) to receive
medical assistance under the
State plan or under any waiver
of such plan and be eligible to
reapply to receive such medical
assistance; and
''(II) provide technical assistance
to the individual seeking to enroll in
such a qualified health plan.
''(v) Qualified lottery winnings defined.--
In this subparagraph, the term 'qualified
lottery winnings' means winnings from a
sweepstakes, lottery, or pool described in
paragraph (3) of section 4402 of the Internal
Revenue Code of 1986 or a lottery operated by a
multistate or multijurisdictional lottery
association, including amounts awarded as a
lump sum payment.
''(vi) Qualified lump sum income defined.--
In this subparagraph, the term 'qualified lump
sum income' means income that is received as a
lump sum from one of the following sources:
''(I) Monetary winnings from
gambling (as defined by the Secretary
and including gambling activities
described in section 1955(b)(4) of
title 18, United States Code).
''(II) Damages received, whether by
suit or agreement and whether as lump
sums or as periodic payments (other
than monthly payments), on account of
causes of action other than causes of
action arising from personal physical
injuries or physical sickness.
''(III) Income received as liquid
assets from the estate (as defined in
section 1917(b)(4)) of a deceased
individual.''; and
(B) by striking ''(14) Exclusion'' and inserting
''(15) Exclusion''.
(b) Rules of Construction.--
(1) Interception of lottery winnings allowed.--Nothing in
the amendment made by subsection (a)(2) shall be construed as
preventing a State from intercepting the State lottery winnings
awarded to an individual in the State to recover amounts paid
by the State under the State Medicaid plan under title XIX of
the Social Security Act (42 U.S.C. 1396 et seq.) for medical
assistance furnished to the individual.
(2) Applicability limited to eligibility of recipient of
lottery winnings or lump sum income.--Nothing in the amendment
made by subsection (a)(2)(A) shall be construed, with respect
to a determination of household income for purposes of a
determination of eligibility for medical assistance under the
State plan under title XIX of the Social Security Act (42
U.S.C. 1396 et seq.) (or a waiver of such plan) made by
applying modified adjusted gross income under subparagraph (A)
of section 1902(e)(14) of such Act (42 U.S.C. 1396a(e)(14)), as
limiting the eligibility for such medical assistance of any
individual that is a member of the household other than the
individual who received qualified lottery winnings or qualified
lump-sum income (as defined in subparagraph (J) of such section
1902(e)(14), as added by subsection (a)(2)(A) of this section).
Output: Prioritizing the Most Vulnerable Over Lottery Winners Act of 2017 This bill specifies how a state must treatqualified lottery winnings and lump sum income for purposes of determining an individual's income-based eligibility for a state Medicaid program. Specifically, a state shall include such winnings or income as income received: (1) in the month in which it was received, if the amount is less than $80,000; (2) over a period of two months, if the amount is at least $80,000 but less than $90,000; (3) over a period of three months, if the amount is at least $90,000 but less than $100,000; and (4) over an additional one-month period for each increment of $10,000 received, not to exceed 120 months. An individual whose income exceeds the applicable eligibility threshold due to qualified lump sum income shall continue to be eligible for medical assistance to the extent that the state determines that denial of eligibility would cause undue medical or financial hardship. With respect to an individual who loses eligibility due to qualified lump sum income, a state must provide specified notice and assistance related to the individual's potential enrollment in a qualified health plan under the Patient Protection and Affordable Care Act. Qualified lump sum income includes: (1) monetary winnings from gambling; (2) damagesreceivedin lump sums or periodic payments,excluding monthly payments, on account of causes of action other than those arising from personal physical injuries or sickness; and (3) income received as liquid assets from the estate of a deceased individual.