The main purpose of this legislation, known as the Kids Information Data Security Act or KIDS Act, is to protect the privacy of minors by preventing healthcare providers who participate in Medicare and state health care programs from asking for information about a minor's gender identity or sexual preference on intake forms. The goal is to ensure that such personal information is not collected unless it is necessary for medical care.