If medical or rehabilitation assistance is provided to a client under this article for injury, loss or damage caused under circumstances creating a cause of action in favor of the client against any person, firm or corporation, then the department shall be entitled to recover the proceeds that may result from the exercise of any rights of recovery which the client may have against any such person, firm or corporation to the extent of the actual amount of the medical or rehabilitation assistance made by the department on behalf of the client. The client shall execute and deliver instruments and papers to do whatever is necessary to secure such rights and shall do nothing after said medical and/or rehabilitation assistance is provided to prejudice the subrogation rights of the department. Pursuant to Section 31-19-29, Mississippi Code of 1972, the department may compromise or settle any such claim and execute a release of any claim it has by virtue of this section.