Create debugging option for Converter matches
It is quite frequently the case during writing of a cfood, that a converter does not match a structure element event though it was expected. It is then quite difficult to find out why this was the case.
I suggest to add a debug_match option to converter definitions as follows:
series_list:
type: ListElement
match_name: (?P<series_no>.*)
debug_match: True
records:
AnatomyImaging:
parents: [AnatomyImaging]
This should cause debugging output that shows what elements with what values were tried to match and where the match was successful.
This needs to be documented.
Edited by Henrik tom Wörden