Factors associated with length of stay following an emergency medical admission.