NSW hospitals check for domestic violence