Using this method you would create a table group in your table grammar, and set its grammar root as the segment that contains the repeating field you want to map. Then you would create a table and put it inside this table group. The final step would be to set the table's grammar root to be the repeating field.
Group 'Message1'
Row 0
Group 'Ids'
Row 0
Table patient_id -
Row 0
ID = '583020'
Id_type = 'code1'
Row 1
ID = '546'
Id_type = 'code2'
Row 2
ID = '76466'
Id_type = ''