Added more clinical constraints from patient data file into time series analysis