Dear Angela,Yes, it is necessary to know the diagnosis to accurately code this scenario. However, you state that a laparotomy was done, which is an open procedure and not a scope. I believe as long as this wasn't for an ectopic, the code you need to start with is 58940 - Oophorectomy, partial or total, unilateral or bilateral.