What is the biblical basis for the idea that the church is a hospital for sinners? Pope Francis, in his recent interview, uses a very common metaphor for the church:


  “I see clearly,” the pope continues, “that the thing the church needs most today is the ability to heal wounds and to warm the hearts of the faithful; it needs nearness, proximity. I see the church as a field hospital after battle. It is useless to ask a seriously injured person if he has high cholesterol and about the level of his blood sugars! You have to heal his wounds. Then we can talk about everything else. Heal the wounds, heal the wounds.... And you have to start from the ground up


I've heard this, and even preached this, but I'm realizing that I don't really know where its Biblical basis comes from.  What is the biblical justification for understanding the church as a place where believers are supposed to be emotionally healed?
And when the scribes and Pharisees saw him eat with publicans and
  sinners, they said unto his disciples, How is it that he eateth and
  drinketh with publicans and sinners?
  
  When Jesus heard it, he saith unto them, They that are whole have no
  need of the physician, but they that are sick: I came not to call the
  righteous, but sinners to repentance.
  
  Mark 2:16-17


Jesus' ministry was not limited to just the spiritual. He healed the sick, physical healing; he ministered to the brokenhearted, emotional healing; and he taught and preached, spiritual healing.


  And Jesus went about all the cities and villages, teaching in their
  synagogues, and preaching the gospel of the kingdom, and healing every
  sickness and every disease among the people.
  
  Matthew 9:35
  
  The Spirit of the Lord God is upon me; because the Lord hath anointed
  me to preach good tidings unto the meek; he hath sent me to bind up
  the brokenhearted, to proclaim liberty to the captives, and the
  opening of the prison to them that are bound.
  
  Isaiah 61:1