Related Experiment Video
Updated: Jun 9, 2025

A Computer-Based Platform for Aiding Clinicians in Eating Disorder Analysis and Diagnosis
Published on: May 10, 2022
Algorithm for forming hospital care episodes by combining attendance contacts in the Danish National Patient
Rasmus Gregersen1,2,3, Cathrine Fox Maule2, Camilla Bjørn Jensen2
1Department of Emergency Medicine, Copenhagen University Hospital - Bispebjerg and Frederiksberg, Copenhagen, Denmark.
Background:
Studying complete hospital care episodes from register data, for instance when assessing length of stay, discharges and readmissions, can cause methodological difficulties due to the lack of a contact linkage identifier. We aimed to develop an algorithm combining sequential attendance contacts in the Danish National Patient Register (DNPR) into hospital care episodes, spanning the entire duration and all contacts from hospital arrival to departure.
Methods:
The algorithm was developed under the consensus of experts from research institutions across Denmark. It reads in second and third version DNPR data, deletes contacts without attendance, duplicates elective outpatient contacts corresponding to attendance dates and modifies contact types (e.g. repeated acute contacts), among others. Thereafter, sequential contacts within 4 h are marked as the same hospital care episode, consisting of one or more DNPR contact. We tested the algorithm in a data set of adults living in Denmark during 2013-2021 and compared different hourly cut-offs.
Results:
For the demonstration, we included 120.2 m contacts from 5.7 m persons, combined into 105.9 m hospital care episodes. Of the hospital care episodes, 6.4% were acute inpatients, 8.3% were acute outpatients, 2.0% were elective inpatients and 83.3% were elective outpatients. Using 4 h as our recommendation, 3-h, 5-h and 6-h cut-offs for contact combining revealed only minor differences in the number of hospital care episodes (<0.4%), whereas 12-h (<1.7%) and 24-h cut-offs (<43.1%) had a larger impact.
Conclusions:
The algorithm automates data reading, modification and linkage of sequential attendance contacts. The algorithm can be initiated as a SAS macro and is available from an online repository.
More Related Videos
09:00TBase - an Integrated Electronic Health Record and Research Database for Kidney Transplant Recipients
Published on: April 13, 2021
06:55Inverse Probability of Treatment Weighting Propensity Score using the Military Health System Data Repository and National Death Index
Published on: January 8, 2020
Related Concept Videos
Documentation in Long-Term and Home Healthcare Setting
Long-Term Care Facilities
Hospitals-I
Data Collection II
Hospitals-II
Nurses that work in...
Formats for Nursing Documentation
Nursing Assessment Form:
• A nursing assessment form is a foundational document that captures detailed patient data from physical assessments and nursing histories.
• It includes patient demographics, medical history,...
Purpose of Health Records I
Here's a breakdown of how health records serve these purposes: