Dear Rodrigo,
thank you for reaching out to us and for reporting this issue.
I have now opened a ticket for the the ontology team at EBI to take a look at the duplication of diseases for the amenorrhea example.
The first example you report is more complicated to resolve and we will have to take a closer look. It is due to an ongoing issue in the phenotype/disease ontology space where a condition, such as acute pancreatitis, and a symptom/phenotype, again acute pancreatitis, can be considered both a disease and a phenotype.
EFO (our ontology of reference) imports from both phenotype and disease domains (HP and MONDO). There are also some historical duplications where there may be an EFO phenotype or disease term and an imported disease/phenotype term with the same label. It’s something we’re aware of but currently do not have the perfect solution to fix.
I hope this helps!
Best,
Annalisa