At all times during temporary custody or shelter care, the court may authorize a physician, a hospital or any other appropriate health care provider to provide medical, dental or surgical procedures if such procedures are necessary to safeguard the minor’s life or health.