An Optimal Policy for Patient Laboratory Tests in Intensive Care Units