# Service sector data

This page has been last updated for R13.

{% hint style="info" %}
Service sector data contains [detailed longitudinal data](/finngen-data-specifics/red-library-data-individual-level-data/what-phenotype-files-are-available-in-sandbox-1/detailed-longitudinal-data.md) with additional columns.
{% endhint %}

### Sandbox directory

Service sector data is available in the following Sandbox directory:

`/finngen/library-red/finngen_R[RELEASE]/service_sector_data_1.0/`

**Note, this data is also available in Atlas and as OMOP common data model.**

### Data files

The data is available in the following file:

`data/finngen_R[RELEASE]_service_sector_detailed_longitudinal_1.0.txt.gz`

{% hint style="info" %}
The service sector data file was introduced in Data Release 8 with [detailed longitudinal data](/finngen-data-specifics/red-library-data-individual-level-data/what-phenotype-files-are-available-in-sandbox-1/detailed-longitudinal-data.md) from INPAT, OUTPAT, PRIM\_OUT, and PURCH registers with three additional columns: CODE5-CODE7. In Data Release 9 v2.0, data from REIMB, CANC and DEATH registers were added to the file. In Data Release 10, two more columns were added: CODE8-CODE9.
{% endhint %}

Additional columns CODE5-CODE9 in the service sector data file (scroll the table to see all columns):

<table data-header-hidden><thead><tr><th width="135"></th><th></th><th></th><th></th><th></th><th></th><th data-hidden></th></tr></thead><tbody><tr><td><strong>Register</strong></td><td><strong>CODE5</strong></td><td><strong>CODE6</strong></td><td><strong>CODE7</strong></td><td><strong>CODE8</strong></td><td><strong>CODE9</strong></td><td></td></tr><tr><td><p>INPAT</p><p>OUTPAT</p><p>OPER_IN</p><p>OPER_OUT (Health-Hilmo)</p></td><td>Service sector</td><td>Speciality</td><td>Hospital type (University Hospital, Central Hospital, Other hospital)</td><td>Contact type</td><td>Urgency</td><td></td></tr><tr><td>PRIM_OUT (Avohilmo)</td><td>Contact type</td><td>Service sector</td><td>Professional code of the recipient of the visit</td><td></td><td></td><td></td></tr><tr><td>PURCH</td><td>Reimbursement cost (until 2001 in Finnish marks, then in euros)</td><td>Additional reimbursement cost (until 2001 in Finnish marks, then in euros)</td><td>Reimbursement category</td><td></td><td></td><td></td></tr></tbody></table>

Please refer to the following file for more information about the service sector data file:

`finngen_R[RELEASE]_service_sector_detailed_longitudinal_readme_1.0.txt`

Documentation about the codes is available in [Service sector data code translations](/finngen-data-specifics/red-library-data-individual-level-data/what-phenotype-files-are-available-in-sandbox-1/service-sector-data/service-sector-data-code-translations.md) and in Sandbox:

`documentation/finngen_service_sector_detailed_longitudinal_code_definitions.txt`

### Atlas vocabulary

In Atlas, the following codes are made available using the Vocabulary 'FGVisitType' or 'Medicare Specialty':

* [**Health-Hilmo**](/finngen-data-specifics/finnish-health-registers-and-medical-coding/finnish-health-registers.md)
  * CODE5 - [Palveluala - Service Sector](/finngen-data-specifics/red-library-data-individual-level-data/what-phenotype-files-are-available-in-sandbox-1/service-sector-data/service-sector-data-code-translations.md)
  * CODE6 - [Erikoisala - Speciality](/finngen-data-specifics/red-library-data-individual-level-data/what-phenotype-files-are-available-in-sandbox-1/service-sector-data/service-sector-data-code-translations.md)
  * CODE8 - [Yhteystapa - Contact type](/finngen-data-specifics/red-library-data-individual-level-data/what-phenotype-files-are-available-in-sandbox-1/service-sector-data/service-sector-data-code-translations.md)
  * CODE9 - [Kiireellisyys - Urgency](/finngen-data-specifics/red-library-data-individual-level-data/what-phenotype-files-are-available-in-sandbox-1/service-sector-data/service-sector-data-code-translations.md)
* [**Avohilmo**](/finngen-data-specifics/finnish-health-registers-and-medical-coding/finnish-health-registers.md)
  * CODE5 - [Kaynti Yhteystapa - Contact type](/finngen-data-specifics/red-library-data-individual-level-data/what-phenotype-files-are-available-in-sandbox-1/service-sector-data/service-sector-data-code-translations.md)
  * CODE6 - [Kaynti Palvelumuoto - Service type](/finngen-data-specifics/red-library-data-individual-level-data/what-phenotype-files-are-available-in-sandbox-1/service-sector-data/service-sector-data-code-translations.md)
  * CODE7 - [Kaynti Ammatti - Professional code](/finngen-data-specifics/red-library-data-individual-level-data/what-phenotype-files-are-available-in-sandbox-1/service-sector-data/service-sector-data-code-translations.md)


---

# 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/finngen-data-specifics/red-library-data-individual-level-data/what-phenotype-files-are-available-in-sandbox-1/service-sector-data.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.
