Yes it can! However, this is only the case if the modifications were made during the time you were providing these medical services. Additionally, the allowable medical expense is determined as the cost of the modifications you made, decreased by the increase in the value of your home. These medical expenses will also be reduced by 10 percent of your adjusted gross income. More information can be found here.