(a) Notwithstanding any other provision of law, the liability for payment of the costs of medical, psychological, and psychiatric care provided or made available to a prisoner committed to the custody of the commissioner is, subject to (b) of this section, the responsibility of the prisoner and the
(1) prisoner's insurer if the prisoner is insured under existing individual health insurance, group health insurance, or any prepaid medical coverage;
(2) Department of Health and Social Services if the prisoner is eligible for assistance under AS 47.07 or AS 47.25.120 - 47.25.300;
(3) United States Department of Veterans Affairs if the prisoner is eligible for veterans' benefits that entitle the prisoner to reimbursement for the medical care or medical services;
(4) United States Public Health Service, the Indian Health Service, or any affiliated group or agency if the prisoner is a Native American and is entitled to medical care from those agencies or groups; and
(5) parent or guardian of the prisoner if the prisoner is under the age of 18.
(b) The commissioner shall require prisoners who are without resources under (a) of this section to pay the costs of medical, psychological, and psychiatric care provided to them by the department. At a minimum, the prisoner shall be required to pay a portion of the costs based upon the prisoner's ability to pay.
(c) The commissioner shall apply for medical assistance under AS 47.07 and for general relief assistance under AS 47.25.120 - 47.25.300 on behalf of a prisoner incarcerated in a correctional facility to establish medical assistance coverage or general relief assistance for the prisoner during a period of hospitalization outside of the correctional facility.
(d) The commissioner may obtain information necessary to determine whether a prisoner incarcerated in a correctional facility is eligible for medical assistance under AS 47.07 or public assistance under AS 47.25. Information obtained under this subsection may be used only for the purpose of applying for medical assistance or public assistance under (c) of this section and may not be disclosed for any other purpose without the permission of the prisoner. An employee of the commissioner who discloses a prisoner's social security number in an application for medical assistance or public assistance under this section is considered to be acting in the performance of the employee's duties or responsibilities under AS 45.48.400(b).