Can you please help me code this correctly. Cataract due to type I diabetes.

The question calls for two codes. I am really struggling with this course. Thank you.