A general time-dependent stochastic compartmental model is considered, where particles may move between a set of m compartments or out of the system, and new particles may be introduced into the compartments by immigration. A simple argument not relying on generating function techniques is given for the solution of such a system. It is then demonstrated that this class of compartmental models can be used as approximations to more complex stochastic systems by replacing dependence on certain stochastic variables by dependence on corresponding deterministic variables, with some recent examples being discussed. A compartmental approximation to the general stochastic epidemic is then constructed which appears on the basis of some simulations to compare favourably with the true process, particularly after the infection has got established in the population.