How to Filter Clinical Notes according to Gender

Delivery Notes, ANC PNC : I recently encountered a situation in which a hospital user mistakenly entered a female patient’s gender as male during registration. Consequently, the patient was incorrectly registered as male, leading to complications in the reporting section. The issue arose because the patient’s consultation in the inpatient department (IPD) was recorded as a female, and she received consultation and treatment with the delivery notes form. Now, the question is how to filter the consultation notes based on gender to address this discrepancy.

Which distribution of OpenMRS was this?