Understanding legal and ethical responsibilities in emergency situations