Registration page search by address and relationship configuration

Im running bahmni on docker and i’ve setup up registration page but run onto two blockers.

  1. I want to configure patient ward search to search for all address levels instead of a specific one like

"address": { "label": "Rural Ward", "placeholder": "Enter ward", "field": "address1" },

I’ve converted field key to "fields": ["address1", "address2"] but to no success. What is the best way to implement that?

  1. I want to implement relationships but i get an error when searching for patient to add relationship I get this error log dpaste/5R9n5 (Python). What am i missing?