‘substantial’ is more than minor or trivial, eg it takes much longer than it usually would to complete a daily task like getting dressed
‘long-term’ means 12 months or more, eg a breathing condition that develops as a result of a lung infection
There are special rules about recurring or fluctuating conditions, eg arthritis.