# Atlas data model

Atlas uses the Observational Medical Outcomes Partnership (OMOP) common relational data model (CDM). This data model supports both[ standard and non-standard medical codes](/working-in-the-sandbox/which-tools-are-available/atlas/detailed-guide/code-sets-in-atlas.md).

{% hint style="info" %}
The OMOP-CDM relational data model used by FinnGen is explained in detail in the [OMOP-CDM v.5.4 specification](https://ohdsi.github.io/CommonDataModel/cdm54.html). OMOP-CDP data model conventions are described [here](https://ohdsi.github.io/CommonDataModel/dataModelConventions.html).
{% endhint %}

### Database tables

The data model consists of the following tables. The Standardized clinical data tables and the Result tables are briefly described in the following sections:

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

### Standardized clinical data tables

Standardized clinical data tables contain all individuals and medical events. Individuals are stored in the PERSON table. In FinnGen, each individual has one observation period stored in the OBSERVATION\_PERIOD table. It starts at birth or from the first entry to the registers and ends at death or at the end of the follow-up period. The other tables contain medical events.

{% hint style="info" %}
OHDSI standardized vocabularies are strictly limited to one OMOP-CDM Domain and all medical event tables belong to only one OMOP-CDM Domain. **The Domain has an effect on how cohorts are defined in Atlas.**
{% endhint %}

<table data-header-hidden><thead><tr><th></th><th width="146.33333333333331"></th><th></th></tr></thead><tbody><tr><td><strong>Table</strong></td><td><strong>Domain</strong></td><td><strong>Description</strong></td></tr><tr><td>PERSON</td><td></td><td>Uniquely identifies each individual and contains demographic information.</td></tr><tr><td>OBSERVATION_PERIOD</td><td></td><td>Defines the span(s) of time during which events happen to an individual. In FinnGen, each individual has only one observation period. It starts at birth or from the first entry to the registers. It ends at death or at the end of the follow-up period.</td></tr><tr><td>VISIT_OCCURENCE</td><td>Visit</td><td>Events where an individual interacts with the healthcare system for a duration of time. For example, an event could be a visit to a hospital, a diagnosis, a procedure, or a drug intake.</td></tr><tr><td>CONDITION_OCCURRENCE</td><td>Condition</td><td>Medical diagnosis events.</td></tr><tr><td>PROCEDURE_OCCURRENCE</td><td>Procedure</td><td>Medical operation events.</td></tr><tr><td>DRUG_EXPOSURE</td><td>Drug</td><td>Drug exposure events.</td></tr><tr><td>MEASUREMENT</td><td>Measurement</td><td>Laboratory test events.</td></tr><tr><td>DEATH</td><td>Death</td><td>Death events.</td></tr><tr><td>OBSERVATION</td><td>Observation</td><td>Events not captured by other domains.</td></tr></tbody></table>

FinnGen uses both[ standard and non-standard medical codes](/working-in-the-sandbox/which-tools-are-available/atlas/detailed-guide/code-sets-in-atlas.md). Standard and non-standard codes are stored in the medical event tables using the following naming convention:

<table data-header-hidden><thead><tr><th width="300"></th><th width="585"></th></tr></thead><tbody><tr><td><strong>Column</strong></td><td><strong>Descriptions</strong></td></tr><tr><td>_CONCEPT_ID</td><td>Foreign key to the medical code used in the OHDSI standard vocabulary. <strong>Standard codes are stored in this column.</strong></td></tr><tr><td>_SOURCE_CONCEPT_ID</td><td>Foreign key to the medical code used in the source data. <strong>Non-standard codes are stored in this column.</strong></td></tr></tbody></table>

### Results tables

The result tables contain cohort definitions as well as cohorts created using them.

<table data-header-hidden><thead><tr><th width="302"></th><th></th></tr></thead><tbody><tr><td><strong>Table</strong></td><td><strong>Description</strong></td></tr><tr><td>COHORT_DEFINITION</td><td>Contains information to define a cohort. Cohorts are a set of individuals that satisfy inclusion criteria for a duration of time. The information in the COHORT_DEFINITION table is used to instantiate a cohort and store it in the COHORT table.</td></tr><tr><td>COHORT</td><td>Contains the individuals that satisfy the definition of a cohort stored in the COHORT_DEFINITION table. The period of time an individual is part of the cohort is captured in the COHORT_START_DATE and COHORT_END_DATE columns. Please note than an individual may enter and exit the cohort more than once.</td></tr></tbody></table>


---

# 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/working-in-the-sandbox/which-tools-are-available/atlas/detailed-guide/atlas-data-model.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.
