Absent or premature cessation of ovarian function due to a pathologic process originating within the ovaries. The disease is Monarch Disease Ontology entry MONDO_0005387 (primary ovarian failure). Also known as: primary ovarian insufficiency.