Fix visit and patient detils for a new active enconter transaction