from simply_ts_domain import simplified_ts_domain

def main():
    file_path = str(input('Output file path: '))
    file_name = str(input('Generated File Name: '))
    study_type = str(input('Study Type [clinical, non-clinical]: '))
    study_id = str(input('Study ID: '))
    start_date = str(input('Study Start Date [YYYY-MM-DD]: '))
    study_except_code = str(input('Study Start Date Exception Code: '))

    if len(file_path) > 1 and file_path[len(file_path) - 1] != '/':
        file_path = file_path + '/'
    
    st_domain = simplified_ts_domain(file_path, file_name, study_type, study_id, start_date, study_except_code)

    st_domain.generate()

if __name__ == "__main__":
    main()