Risk Management in the Care of Medical Emergencies after Referral to Hospital