I'm a bit out of my depth here, but I think you can generalize it to differential fields, where you want to figure out e.g. which functions have a closed-form integral. A reference (the only reference?) would be Topological Galois theory: https://www.springer.com/us/book/9783642388705