If a patient is found to be at risk for suicide or if he or she makes a credible threat to harm another person. When the patient has a communicable disease that poses a risk to public health. When authorized by a court order. When required by state law