The determination of entitlement to an allowance of attorney fees as costs and the amount thereof under § 58-12-3 shall be made by the court or the Department of Labor and Regulation at a separate hearing of record subsequent to the entry of a judgment or award in favor of the person making claim against the insurance company, and, if an allowance is made, the amount thereof shall be inserted in or added to the judgment or award. Such a hearing shall be afforded upon the request of the claimant made within ten days after entry of the judgment or award.
SDCL 58-12-3.1