What factors should be considered to avoid legal risk in ambulatory care? Explain your answer.