Any license issued under this part may be revoked by the department of human services acting through the commissioner. The department shall notify the licensee thirty (30) days prior to revoking any license stating the reasons for revocation. A copy of the notice shall be sent to the county mayor of the county in which the home is located. Thirty (30) days after the issuance of the notice the department, by its agent, shall visit the home and, if the reasons set out in the notice for revoking the license have been corrected, the license shall not be revoked; but if the reasons set out in the notice have not been corrected, the license may be revoked by the department acting through the commissioner after an opportunity for a fair hearing before the commissioner or the commissioner's duly designated representative, the juvenile judge and the county attorney.