Add patient_id to data_record export (fixed test).