TY - JOUR
T1 - Algorithm for forming hospital care episodes by combining attendance contacts in the Danish National Patient Register
T2 - A methodological consensus-driven study
AU - Gregersen, Rasmus
AU - Fox Maule, Cathrine
AU - Bjørn Jensen, Camilla
AU - Winther-Jensen, Matilde
AU - Helms Andreasen, Anne
AU - Nygaard, Hanne
AU - Pottegård, Anton
AU - Schmidt, Morten
AU - Paaske Johnsen, Søren
AU - Petersen, Janne
AU - Villumsen, Marie
PY - 2024/10/22
Y1 - 2024/10/22
N2 - 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.
AB - 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.
UR - http://www.scopus.com/inward/record.url?scp=85208060382&partnerID=8YFLogxK
U2 - 10.1177/14034948241284711
DO - 10.1177/14034948241284711
M3 - Journal article
C2 - 39439151
SN - 1403-4956
SP - 14034948241284711
JO - Scandinavian Journal of Public Health. Supplement
JF - Scandinavian Journal of Public Health. Supplement
ER -