A tutorial on discovering and quantifying the effect of latent causal sources of multimodal EHR data