:type-code is a nested hashmap