A hospital, a voluntary paternity establishment service entity, and the agents or employees of either, acting in accordance with this chapter or attempting in good faith to do so, are immune from civil liability for that activity.