The OData feed returns all the aims regardless of the learner status or programme status and will return any programmes the Learner has been enrolled on, including sub-programmes. This includes any sub-programmes that a user had been enrolled on but has subsequently been removed from.
The User Profile however, will not show any sub-programmes that have been removed.