how to write a diagnosis for a case study