The study number is generated when the data is appended to TMSX or MedTMS to uniquely identify a patient encounter, i.e. one ward or unit stay. The study number is unique across the entire data set.