Application Of Multistate Transition Models In Electronic Medical Record Data