> For the complete documentation index, see [llms.txt](https://support.who-umc.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.who-umc.org/vigilyze/algorithms-used-in-vigilyze/pregnancy-algorithm.md).

# Pregnancy algorithm

The VigiBase pregnancy algorithm is a rule-based method developed to identify pregnancy-related reports. More specifically, it uses structured data elements to identify reports of maternal exposure to a medicinal product before or during pregnancy, with or without adverse events in the pregnant person or the prenatally exposed. It does not flag patients over 50 years, paternal exposures, or lactation reports.

The algorithm consists of two main steps, as shown in Figure 1. First, reports that are considered unlikely to be pregnancy-related are ruled out. Second, if none of the rule-out criteria are met, reports are flagged if they meet any of the rule-in criteria.

<figure><img src="/files/iqrpw0CIasOm7EfFIO8H" alt=""><figcaption></figcaption></figure>

Figure 1. The VigiBase pregnancy algorithm

According to UMC’s evaluation of the algorithm based on around 8,000 manually annotated reports, the algorithm is expected to identify 75% of all pregnancy cases in VigiBase (i.e. recall/sensitivity). When restricted to reports transmitted in the E2B format, this proportion increases to 91%. In addition, 92% of the reports identified by the algorithm as pregnancy cases are correctly classified (i.e. precision/positive predictive value. This proportion is unchanged when restricted to reports transmitted in the E2B format.

#### Get to know more

* [Comprehensive evaluation of algorithm - Research poster](https://who-umc.org/media/j2cpykuc/pregnancy_poster_digital.pdf)
* [Uncovering pregnancy cases in VigiBase - Uppsala Reports](https://uppsalareports.org/articles/uncovering-pregnancy-cases-in-vigibase/)
* Sandberg, L., Vidlin, S.H., K-Pápai, L. *et al.* Uncovering Pregnancy Exposures in Pharmacovigilance Case Report Databases: A Comprehensive Evaluation of the VigiBase Pregnancy Algorithm. *Drug Saf* (2025). <https://doi.org/10.1007/s40264-025-01559-0>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://support.who-umc.org/vigilyze/algorithms-used-in-vigilyze/pregnancy-algorithm.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
