Legislative intelligence / 90R
SESSION 2027View project ↗

Code of Criminal Procedure Art. 21.31: TESTING FOR AIDS AND CERTAIN OTHER DISEASES

No bill in the 90th Legislature changes this section yet

Follow this section in Texas Bill Atlas: a bill filed later that changes it shows up as new.

Part of Code of Criminal Procedure Chapter 21, with every bill that changes it.

Bills are matched to sections automatically from their text and can be missed, for example when a bill changes a whole chapter at once or renumbers sections. No bill listed here does not mean no bill changes this section.

Current law

Art. 21.31. TESTING FOR AIDS AND CERTAIN OTHER DISEASES. (a) A person who is indicted for or who waives indictment for an offense under Section 21.02, 21.11(a)(1), 22.011, or 22.021, Penal Code, shall, at the direction of the court on the court's own motion or on the request of the victim of the alleged offense, undergo a standard diagnostic test approved by the United States Food and Drug Administration for human immunodeficiency virus (HIV) infection and other sexually transmitted diseases. If the person refuses to submit voluntarily to the test, the court shall require the person to submit to the test. On request of the victim of the alleged offense, the court shall order the defendant to undergo the test not later than 48 hours after an indictment for the offense is presented against the defendant or the defendant waives indictment. Except as provided by Subsection (b-1), the court may require a defendant previously required under this article to undergo a diagnostic test on indictment for an offense to undergo a subsequent test only after conviction of the offense. A person performing a test under this subsection shall make the test results available to the local health authority, and the local health authority shall be required to make the notification of the test results to the victim of the alleged offense and to the defendant.

(a-1) If the victim requests the testing of the defendant and a law enforcement agency is unable to locate the defendant during the 48-hour period allowed for that testing under Subsection (a), the running of the 48-hour period is tolled until the law enforcement agency locates the defendant and the defendant is present in the jurisdiction.

(b) The court shall order a person who is charged with an offense under Section 22.11, Penal Code, to undergo in the manner provided by Subsection (a) a diagnostic test designed to show or help show whether the person has HIV, hepatitis A, hepatitis B, tuberculosis, or any other disease designated as a reportable disease under Section 81.048, Health and Safety Code. The person charged with the offense shall pay the costs of testing under this subsection.

(b-1) If the results of a diagnostic test conducted under Subsection (a) or (b) are positive for HIV, the court shall order the defendant to undergo any necessary additional testing within a reasonable time after the test results are released.

(c) The state may not use the fact that a test was performed on a person under Subsection (a) or use the results of a test conducted under Subsection (a) in any criminal proceeding arising out of the alleged offense.

(d) Testing under this article shall be conducted in accordance with written infectious disease control protocols adopted by the Texas Board of Health that clearly establish procedural guidelines that provide criteria for testing and that respect the rights of the person accused and any victim of the alleged offense.

(e) This article does not permit a court to release a

The section continues: whole chapter.

Links

Texas Bill Atlas is an independent research tool, not an official state website.

PLEASE READ

Before you use Texas Bill Atlas

An independent, open-source project. This site is not affiliated with, endorsed by, or operated by the Texas Legislature, the Texas Legislative Council, the Secretary of State, or any state agency.

Data may be incomplete, delayed, or wrong. Bill records are copied automatically from the legislature’s public files. Topic, agency, party, influence and last-action tags, and the full-text summaries written by Luna (an AI model), are automated interpretations and can be mistaken.

Not advice. Nothing here is legal, political, or professional advice. The project and its contributors make no warranty of accuracy or completeness and accept no liability for errors, omissions, or decisions made using this site.

Check the official record. Confirm anything that matters on Texas Legislature Online. Spotted a mistake? Report it on GitHub.

TEXAS BILL ATLAS

Privacy Policy

Last updated: November 11, 2026

Texas Bill Atlas is a free, independent, open-source project. We believe you should be able to research legislation without creating an account or providing personal information.

Information we collect

We do not require registration, names, email addresses, or other personal information to use the service.

We do not sell personal information, serve targeted advertising, or intentionally track individual browsing activity.

Analytics and security

We use Cloudflare for website delivery, security, and traffic analytics.

Cloudflare may process technical information such as IP addresses, browser details, request information, and website usage statistics. Cloudflare may also use cookies necessary for security and abuse prevention.

For more information, see Cloudflare's Privacy Policy.

Watchlists and saved preferences

Watchlists and preferences are stored locally in your browser by default.

If you choose to enable watchlist synchronization, we store the selected bill numbers, the member codes of legislators you follow, your saved searches (their names, search words and filters), filters, and hashed access keys on our server. View-only links show the bill numbers only.

No account or personal information is required. Anyone possessing a valid private access link may access the associated watchlist according to that link's permissions.

You can delete a synced watchlist using its edit access key. Inactive synced watchlists are automatically removed after approximately one year.

Technical data

Our servers may temporarily process IP addresses and request information for security, rate limiting, and reliable operation.

We do not use this information to build individual user profiles.

The site also loads certain external resources, including Google Fonts. Those providers may receive ordinary technical request information.

Third-party services

Links to government websites, GitHub, and other external services are governed by their respective privacy policies.

Changes

We may update this policy as the project develops. The current version will be available on this website with its updated date.

Questions

For questions about the project or its privacy practices, visit our GitHub repository.