Notwithstanding any other provisions of law, except those provisions protecting the confidentiality of adoption records and except for cases in which parental rights have been legally terminated, access to records and information pertaining to a minor child, including but not limited to medical, dental and school records, shall not be denied to a parent because the parent is not the child’s custodial parent if such parent’s parental rights have not been terminated by adoption or by a termination of parental rights proceeding.