in old_reference/er7_to_json.py [0:0]
def get_pid_component_value(field, component): # Check if exists and not blank if field.get(component) != None and field[component]: return str(field[component]) else: return ''