(a) An individual commits an offense if:
(1) the individual intentionally releases an identifiable sample of the genetic material of another individual that was provided for purposes of genetic testing ordered under this subchapter; and
(2) the release:
(A) is for a purpose not related to the proceeding to declare heirship; and
(B) was not ordered by the court or done in accordance with written permission obtained from the individual who provided the sample.
(b) An offense under this section is a Class A misdemeanor.