Diagnosis codes identify the medical necessity of services provided by describing the circumstances of the patient’s condition. To better support medical necessity for services reported, you should apply the following principles: 1. List the principal diagnosis, condition, problem, or other reason for the medical service or procedure. 2..