set patientId option before creating model, as the query panel might be initialized there