I think I am going a little astray here. hash_id only applies to the patient name, ID, and accession number. Patient name cannot be multivalue (presumably), so I shouldn’t be trying to make this work. It should however handle the error better.
Happy now. Created name hash with Python 2.7, old pydicom, OpenREM 0.10; added test in this code; result matches. Also enabled multivalue names to be hashed without error. Refs #838