...
You can use the same format of protocol id for the metric as for MRI and physiology; because studies are selected by type, they will not get confused.
{noformat}
[patient id][session number][yyyymmdd]
...
Table metric
'study_id' | 'int(11)' | 'NO' |
'covariate_value_id' | 'int(11)' | 'NO' |
...