# What does it mean when an endpoint has “mode” at the end?

The "mode" means that, for example, Non-Allergenic Asthma (mode) - J450 includes all patients with J45x longitudinal events that have J450 as their most common code.

Algorithmically, this means you remove the last character of the ICDx code and then grep all the events, count the ratio of `ICDx / ICD` codes and assign the J450 case if the ratio is > 0.5. If the ratio is < 0.5, it will be assigned J45, then the same is done for J4x (the comparison between COPD and asthma), etc.


---

# Agent Instructions: 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:

```
GET https://docs.finngen.fi/faq/about-endpoints/what-does-it-mean-when-an-endpoint-has-mode-at-the-end.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
