require_dependency "renalware/directory"

module Renalware
  module Directory
    class PersonAutoCompletePresenter < DumbDelegator
      def name_and_address
        [family_name, given_name, address].compact.join(", ")
      end

      def to_hash
        { id: id, label: name_and_address }
      end
    end
  end
end

require_dependency "renalware/directory"

module Renalware
  module Directory
    class PersonAutoCompletePresenter < DumbDelegator
      def to_hash
        { id: id, label: to_s }
      end
    end
  end
end

--- 
+++ 
@@ -3,8 +3,12 @@
 module Renalware
   module Directory
     class PersonAutoCompletePresenter < DumbDelegator
+      def name_and_address
+        [family_name, given_name, address].compact.join(", ")
+      end
+
       def to_hash
-        { id: id, label: to_s }
+        { id: id, label: name_and_address }
       end
     end
   end
Include address in label for autocomplete
