Skip to main content

Hospital medication (SMR)

What to check before you use the Hospital Medication Register, medication given at public hospitals from May 2018

The Danish Hospital Medication Register (SMR) from the Danish Health Data Authority: coverage from 15 May 2018, gaps by region and drug, breaks at reporting guide 2.0, and a check per region and month in R.
Last modified

December 4, 2026

Use this page if your study needs medication given in hospital, which is not in the prescription register LMDB (see Medication (ATC)). Cancer drugs and biologics given at a hospital are typical examples. SMR is not a DST (Statistics Denmark) register. It is held by the Danish Health Data Authority (Sundhedsdatastyrelsen, SDS), its data quality has not yet been evaluated, and some clinical specialties are missing (Rosenkrantz et al. 2024). This page says what to check before you rely on it.

Looking for prescriptions dispensed at community pharmacies, the ones in LMDB? That is on Medication (ATC).

What SMR holds

The Hospital Medication Register (Sygehusmedicinregisteret, SMR) holds medication given or dispensed at public hospitals and hospital outpatient clinics, reported by the five regions. The regions started reporting on 15 May 2018, so there is nothing before that date (data declaration, June 2026, section 1.2). Private hospitals, hospices and specialist hospitals run as independent institutions are not reported (data declaration, June 2026).

You apply for SMR through the Forskerservice of SDS, which says that data are as a rule made available on research machines at SDS or at DST (Forskerservice). Ask Forskerservice how SMR will reach your project before you plan the linkage to your DST registers. SDS also warns that replacement civil registration (CPR) numbers are not unique across regions, so read V_CPR together with the region (data declaration, section 4.1.16).

The column names below are the ones in SDS’s data declaration. Check them against the columns in your own delivery with colnames().

Completeness differs by region and drug

At the end of 2022 SDS wrote that heavy medicines (cancer drugs and biologics) were missing for Region Nordjylland and Region Syddanmark. Dispensed medicine was missing for Region Hovedstaden, Region Sjælland, Region Nordjylland and Region Syddanmark, and only partly reported by Region Midtjylland. A cost could be calculated for only about 60% of the reported administrations (SDS, gevinstrealisering i forbindelse med SMR2-projektet, 9 March 2023).

The June 2026 declaration describes cancer drugs region by region:

  • Midtjylland reports them from early 2019 for oncology departments, from September 2019 for haematology outpatients, from mid-2021 for haematology inpatients and from early 2023 for children and young people.
  • Nordjylland does not give parenteral cancer drugs in the medication module, so they are not reported. Reporting from the haematology department starts in August 2025.
  • Syddanmark does not handle cancer drugs in the medication module. An electronic treatment scheme was in use in some departments in September 2025, and SDS calls the data incomplete.
  • Hovedstaden and Sjælland do not report cytostatics dispensed for home treatment.

A zero count for a cancer drug or a biologic in a region is therefore not evidence of no use. The same section lists other gaps, such as intensive care and anaesthesia, eye departments and some outpatient clinics. Read the entries for the departments and drugs in your study.

Breaks when a region moves to reporting guide 2.0

Each region moves from reporting guide 1.x to reporting guide 2.0 (called “SMR2” in the declaration) on its own date. Rows from before and after the move are not the same kind of rows.

Region Guide 2.0 from Mixtures Infusion time in D_ADM before 2.0
Nordjylland April 2025 One row per administration from March 2022, no dose for the components Take-down time, from April 2022 (end date not given)
Midtjylland October 2025 A main row plus one row per component from February 2021, no component dose Start time, but the row is reported at take-down, from June 2019
Syddanmark September 2025 Not registered in the medication module Take-down time until autumn 2023, start time after
Hovedstaden, Sjælland No date in the declaration Not split into components Start time chosen by the user

What changes in your data at the move (data declaration, sections 2.4 and 4.1):

  • Rows that disappear. Guide 2.0 does not allow dose 0 (an administration that was planned but not given), future administrations or the patient’s own medicine. Nordjylland, Midtjylland and Syddanmark reported dose 0 before the move, Midtjylland reported dispensed medicine as administrations dated in the future from February 2021, and Nordjylland reported own medicine from May
    1. Earlier periods therefore contain rows that later periods do not. Dropping rows with V_ADM_DOSIS 0 in every period removes the first of these differences, but not the other two. SDS’s data declaration notes “et meget lille antal (17 fra 01-07-2022 til 2023-08-21)” component rows with dose 0 from Hovedstaden and Sjælland (Tabel 13). In one project’s delivery from June 2026, Hovedstaden and Sjælland also had rows with dose 0, and Syddanmark still had them after September 2025, so count them per region and month in your own delivery rather than relying on the dates above.
  • A new administration key. Under 2.0 K_ADM_ID is a new synthetic key. SDS writes that it “Er ikke kompatibel, med nøglen i version 1.x.” Do not use it to link rows reported before and after a region’s move.
  • Deleted rows. A row that was reported and later deleted in the hospital system stays in SMR with C_SLETTET = 1. Rows that are not deleted have C_SLETTET = 0. If your delivery has the column, remove the deleted rows.
  • Dose units. Before 2.0 each region used its own unit list. In Hovedstaden and Sjælland the unit can be a rate or a concentration, such as mg/kg, mg/ml or microgram/kg/min, instead of an amount. Check the units in V_ADM_DOSIS_ENHED before you sum doses.
  • Infusions. The table above shows which time D_ADM holds for a continuous infusion. An infusion reported at take-down can fall in a later month than it started.

ATC codes change over time

C_ATC is the Anatomical Therapeutic Chemical (ATC) code that was valid when the drug was given (data declaration, section 4.1.22), and WHO (World Health Organization) revises the ATC system every year. A drug can therefore have one code early in the register and another later. The monoclonal antibodies are an example: they were under L01XC and are now under L01F in WHO’s ATC index. A filter on the old code alone loses the later rows, and the drop looks like a break in the register. Look up whether the drugs in your study changed code during your study period, and filter on both the old and the new code.

Check your drugs before you use them

Plot the number of administrations per region and month for the drugs in your study, as the LPR (the National Patient Register) page does for the change in diagnoses around 2019-2020. A region where a drug is absent, or where the count jumps at a move to guide 2.0, tells you where the register cannot answer your question. The sketch below uses the declaration’s column names in lower case and the monoclonal antibodies as the example, under both their old and their new ATC code. smr is your opened SMR table, opened in the same way as lmdb in Extract the dispensings: read_register() with your SMR table’s name, then rename_with(tolower). If SMR came as one file without a year in its name, fastreg’s CRAN (the Comprehensive R Archive Network, where R packages are published) version cannot find it by name: see When read_register() cannot find the register. The sketch also counts the rows with dose 0, so you can see where and when they occur in your delivery.

library(dplyr)   # rename_with, filter, select, collect, mutate, count
library(ggplot2) # ggplot, geom_col, facet_wrap

smr_counts <- smr %>%
  rename_with(tolower) %>%
  filter(grepl("^L01XC|^L01F", c_atc)) %>%    # monoclonal antibodies: old code L01XC, current code L01F
  select(k_region_id, d_adm, v_adm_dosis, c_slettet) %>% # no c_slettet in your delivery: drop it here
  collect() %>%
  filter(c_slettet == 0) %>%                  # ... and drop this line
  mutate(month = as.Date(format(as.Date(d_adm), "%Y-%m-01"))) %>%
  count(k_region_id, month,
        dose_0 = v_adm_dosis == 0)            # administrations per region and month, dose 0 or not

ggplot(smr_counts, aes(x = month, y = n, fill = dose_0)) +
  geom_col() +                                 # stacked: the dose-0 rows show as their own colour
  facet_wrap(~ k_region_id, scales = "free_y") # one panel per region

A figure that leaves the research machine must be aggregated, as in Figures for publication. Months with few administrations are small cells, see Output control and export.

See also

Back to top