<?xml version="1.0"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.2 20190208//EN" "JATS-journalpublishing1.dtd"[]>
<article xml:lang="en" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:mml="http://www.w3.org/1998/Math/MathML" dtd-version="1.2" article-type="research-article">
<front>
<journal-meta>
<journal-id journal-id-type="publisher-id">IJPDS</journal-id>
<journal-title-group>
<journal-title>International Journal of Population Data Science</journal-title>
<abbrev-journal-title>IJPDS</abbrev-journal-title>
</journal-title-group>
<issn pub-type="epub">2399-4908</issn>
<publisher>
<publisher-name>Swansea University</publisher-name>
</publisher>
</journal-meta>
<article-meta>
<article-id pub-id-type="doi">10.23889/ijpds.v11i5.3517</article-id>
<article-id pub-id-type="publisher-id">11:5:3517</article-id>
<article-id pub-id-type="pii">S2399490821035175</article-id>
<article-categories>
<subj-group subj-group-type="heading">
<subject>Population Data Science</subject>
</subj-group>
</article-categories>
<title-group>
<article-title>The automated generation of data linkage Information: A reusable, scalable metadata framework for Trusted Research Environments</article-title>
</title-group>
<contrib-group>
<contrib contrib-type="author"><name><surname>Mhereeg</surname><given-names initials="M">Mohamed</given-names></name><xref ref-type="aff" rid="affil-1"><sup>1</sup></xref></contrib>
<contrib contrib-type="author"><name><surname>Rawlings</surname><given-names initials="A">Anna</given-names></name><xref ref-type="aff" rid="affil-1"><sup>1</sup></xref></contrib>
<contrib contrib-type="author"><name><surname>Davies</surname><given-names initials="G">Gareth</given-names></name><xref ref-type="aff" rid="affil-1"><sup>1</sup></xref></contrib>
<contrib contrib-type="author"><name><surname>Howell-Wright</surname><given-names initials="O">Owen</given-names></name><xref ref-type="aff" rid="affil-1"><sup>1</sup></xref></contrib>
<contrib contrib-type="author"><name><surname>Hughes</surname><given-names initials="L">Lee</given-names></name><xref ref-type="aff" rid="affil-1"><sup>1</sup></xref></contrib>
<contrib contrib-type="author"><name><surname>Akbari</surname><given-names initials="A">Ashley</given-names></name><xref ref-type="aff" rid="affil-1"><sup>1</sup></xref></contrib>
<contrib contrib-type="author"><name><surname>Evans</surname><given-names initials="H">Hywel</given-names></name><xref ref-type="aff" rid="affil-1"><sup>1</sup></xref></contrib>
<aff id="affil-1"><label>1</label><institution>Swansea University Medical School, Swansea, United Kingdom</institution></aff>
</contrib-group>
<pub-date date-type="pub" publication-format="electronic"><day></day><month></month><year></year></pub-date>
<pub-date date-type="collection" publication-format="electronic"><year></year></pub-date>
<volume>11</volume>
<issue>5</issue>
<elocation-id>3517</elocation-id>
<permissions>
<license license-type="open-access" xlink:href="https://creativecommons.org/licenses/by-nc-nd/4.0/">
<license-p>This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.</license-p>
</license>
</permissions>
<self-uri xlink:href="https://ijpds.org/article/view/3517">This article is available from the IJPDS website at: https://ijpds.org/article/view/3517</self-uri>
<abstract>
<p>Using the correct linkage keys to join tables is essential when combining data from multiple sources. Although Trusted Research Environments (TREs) provide metadata to support data linkage, to the best of our knowledge, none currently automate the creation of detailed table-level linkage information. Researchers often conduct linkages, and complex linkages exist at many levels. However, this manual approach may misuse available linkages. As the number of data sources and datasets increases in complexity, ensuring correct linkages within and across data sources becomes difficult, reducing efficiency and reproducibility. The framework provides an end-to-end solution for data in the Secure Anonymised Information Linkage (SAIL) Databank by generating a full linkage matrix and documentation directly from common metadata fields (e.g., table_name, column_name, datatype) using configurable pattern-matching rules (e.g., column_name ending in ‘_E’ denotes an encrypted ID field). The algorithm then compares shared keys across all tables to identify every combination of internal and external linkages, producing linkage matrix with structured natural-language statements for users, which can subsequently be used to generate linkage diagrams. The framework has been validated to ensure accuracy, including verifying that all linkage keys and information are detected. To assess performance, the framework calculates accuracy, precision, and recall by comparing results against a manually generated standard reference, which is validated by the SAIL User-and-Data-Support-Services (UDSS) team. Our approach offers major benefits for TREs and researchers by standardising scalable and reusable linkage documentation. We improved the consistency of linkage metadata production for complex, multi-table datasets within SAIL.</p>
</abstract>
</article-meta>
</front>
</article>