changed hpi, treatment, and encounter to text from varchar