If medical assistance is provided by the department to a dependent pursuant to chapter 249A, rights to medical support payments are assigned to the department.