added function to determine if a study is trial or nursery