Pattern Discovery and Disentanglement for Clinical Data Analysis