Generally, a person who is filing a return for a decedent and claiming a refund must file Form 1310 Statement of Person Claiming Refund Due a Deceased Taxpayer with the return. However, if the person claiming the refund is a surviving spouse filing a joint return with the decedent, or a court-appointed or certified personal representative filing an original return for the decedent, Form 1310 is not needed.
Additionally if you are a court-appointed representative, you must paper file the return in order to attach a copy of the certificate that shows your appointment.
To access this form, which can be e-filed with the return: