We discuss ruin theory when the insurance risk process is described by a hidden Markov, regime-switching diffusion process. The innovations approach to filtering theory is used to transform the partially observed modeling framework into one with complete observations. (Robust) filters for the hidden states of the chain are given. A partial differential equation for the ruin probability is derived in the filtered model.