thanks - that’s what I was thinking too - I could brute-force it and build a dict myself, but it will likely be slow and disk I/O intensive!
Also, given my goals of protocol compliance etc, I have to consider this and perhaps work with DICOMS on XNAT directly? Just thinking out loud here.