REDCapCAST/articles/REDCapCAST.html

2996 lines
136 KiB
HTML
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<!-- Generated by pkgdown: do not edit by hand --><html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>REDCapCAST • REDCapCAST</title>
<!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png">
<link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png">
<link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png">
<link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png">
<link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png">
<link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png">
<script src="../deps/jquery-3.6.0/jquery-3.6.0.min.js"></script><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link href="../deps/bootstrap-5.3.1/bootstrap.min.css" rel="stylesheet">
<script src="../deps/bootstrap-5.3.1/bootstrap.bundle.min.js"></script><link href="../deps/font-awesome-6.5.2/css/all.min.css" rel="stylesheet">
<link href="../deps/font-awesome-6.5.2/css/v4-shims.min.css" rel="stylesheet">
<script src="../deps/headroom-0.11.0/headroom.min.js"></script><script src="../deps/headroom-0.11.0/jQuery.headroom.min.js"></script><script src="../deps/bootstrap-toc-1.0.1/bootstrap-toc.min.js"></script><script src="../deps/clipboard.js-2.0.11/clipboard.min.js"></script><script src="../deps/search-1.0.0/autocomplete.jquery.min.js"></script><script src="../deps/search-1.0.0/fuse.min.js"></script><script src="../deps/search-1.0.0/mark.min.js"></script><!-- pkgdown --><script src="../pkgdown.js"></script><meta property="og:title" content="REDCapCAST">
</head>
<body>
<a href="#main" class="visually-hidden-focusable">Skip to contents</a>
<nav class="navbar navbar-expand-lg fixed-top bg-light" data-bs-theme="light" aria-label="Site navigation"><div class="container">
<a class="navbar-brand me-2" href="../index.html">REDCapCAST</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">24.12.1</small>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div id="navbar" class="collapse navbar-collapse ms-3">
<ul class="navbar-nav me-auto">
<li class="active nav-item"><a class="nav-link" href="../articles/REDCapCAST.html">Get started</a></li>
<li class="nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
<li class="nav-item dropdown">
<button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button>
<ul class="dropdown-menu" aria-labelledby="dropdown-articles">
<li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li>
<li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li>
</ul>
</li>
<li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li>
</ul>
<ul class="navbar-nav">
<li class="nav-item"><form class="form-inline" role="search">
<input class="form-control" type="search" name="search-input" id="search-input" autocomplete="off" aria-label="Search site" placeholder="Search for" data-search-index="../search.json">
</form></li>
<li class="nav-item"><a class="external-link nav-link" href="https://github.com/agdamsbo/REDCapCAST/" aria-label="GitHub"><span class="fa fab fa-github fa-lg"></span></a></li>
</ul>
</div>
</div>
</nav><div class="container template-article">
<div class="row">
<main id="main" class="col-md-9"><div class="page-header">
<img src="../logo.png" class="logo" alt=""><h1>REDCapCAST</h1>
<small class="dont-index">Source: <a href="https://github.com/agdamsbo/REDCapCAST/blob/v24.12.1/vignettes/REDCapCAST.Rmd" class="external-link"><code>vignettes/REDCapCAST.Rmd</code></a></small>
<div class="d-none name"><code>REDCapCAST.Rmd</code></div>
</div>
<div class="sourceCode" id="cb1"><pre class="downlit sourceCode r">
<code class="sourceCode R"><span><span class="kw"><a href="https://rdrr.io/r/base/library.html" class="external-link">library</a></span><span class="op">(</span><span class="va"><a href="https://github.com/agdamsbo/REDCapCAST" class="external-link">REDCapCAST</a></span><span class="op">)</span></span></code></pre></div>
<p>This vignette covers the basics to get you started with the two basic
features of REDCapCAST:</p>
<ul>
<li><p>Casting REDCap metadata to create a new REDCap database or extend
an existing with a new instrument</p></li>
<li><p>Reading REDCap data in a convenient and focused way, by only
getting the data you need, while preserving as much metadata as
possible.</p></li>
</ul>
<div class="section level2">
<h2 id="casting-meta-data">Casting meta data<a class="anchor" aria-label="anchor" href="#casting-meta-data"></a>
</h2>
<p>The easiest way is to use the <code><a href="../reference/shiny_cast.html">shiny_cast()</a></code>. You can
access a <a href="https://agdamsbo.shinyapps.io/redcapcast/" class="external-link">hosted
version here</a> or launch it locally like this:</p>
<div class="sourceCode" id="cb2"><pre class="downlit sourceCode r">
<code class="sourceCode R"><span><span class="fu"><a href="../reference/shiny_cast.html">shiny_cast</a></span><span class="op">(</span><span class="op">)</span></span></code></pre></div>
</div>
<div class="section level2">
<h2 id="reading-data-from-redcap">Reading data from REDCap<a class="anchor" aria-label="anchor" href="#reading-data-from-redcap"></a>
</h2>
<p>To get you started, the easiest way possible, you can use the
<code><a href="../reference/easy_redcap.html">easy_redcap()</a></code> function (example below).</p>
<p>You will need an API-key for your REDCap server, the uri/URL/address
for the API connection (usually the adress used for accessing your
institutions REDCap servar, with an appended “/api/”).</p>
<p>This function includes a few convenience features to ease your
further work.</p>
<p>If your project uses repeating instruments possible as a longitudinal
project, you can choose to widen the data. If not, the result will be a
list of each instrument you have chosen to extract data from. Make sure
to specify only the fields or instruments you need, and avoid to save
any of the data locally, but always source from REDCap to avoid possibly
insecure local storage of sensitive data.</p>
<div class="sourceCode" id="cb3"><pre class="downlit sourceCode r">
<code class="sourceCode R"><span><span class="fu"><a href="../reference/easy_redcap.html">easy_redcap</a></span><span class="op">(</span></span>
<span> uri <span class="op">=</span> <span class="st">"YOUR URI"</span>,</span>
<span> project.name <span class="op">=</span> <span class="st">"MY_PROJECT"</span>,</span>
<span> widen.data <span class="op">=</span> <span class="cn">TRUE</span>,</span>
<span> fields <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"record_id"</span>, <span class="st">"OTHER FIELDS"</span><span class="op">)</span></span>
<span><span class="op">)</span></span></code></pre></div>
</div>
<div class="section level2">
<h2 id="splitting-the-dataset">Splitting the dataset<a class="anchor" aria-label="anchor" href="#splitting-the-dataset"></a>
</h2>
<p>The <code><a href="../reference/easy_redcap.html">easy_redcap()</a></code> function does a few things under the
hood. Below are a few examples to show how the nicely formatted output
is achieved.</p>
<p>A sample dataset and Data Dictionary/metadata is provided for this
demonstration:</p>
<div class="sourceCode" id="cb4"><pre class="downlit sourceCode r">
<code class="sourceCode R"><span><span class="va">redcapcast_data</span> <span class="op">|&gt;</span> <span class="fu">gt</span><span class="fu">::</span><span class="fu"><a href="https://gt.rstudio.com/reference/gt.html" class="external-link">gt</a></span><span class="op">(</span><span class="op">)</span></span></code></pre></div>
<div id="mwlefoodfi" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#mwlefoodfi table {
font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
#mwlefoodfi thead, #mwlefoodfi tbody, #mwlefoodfi tfoot, #mwlefoodfi tr, #mwlefoodfi td, #mwlefoodfi th {
border-style: none;
}
#mwlefoodfi p {
margin: 0;
padding: 0;
}
#mwlefoodfi .gt_table {
display: table;
border-collapse: collapse;
line-height: normal;
margin-left: auto;
margin-right: auto;
color: #333333;
font-size: 16px;
font-weight: normal;
font-style: normal;
background-color: #FFFFFF;
width: auto;
border-top-style: solid;
border-top-width: 2px;
border-top-color: #A8A8A8;
border-right-style: none;
border-right-width: 2px;
border-right-color: #D3D3D3;
border-bottom-style: solid;
border-bottom-width: 2px;
border-bottom-color: #A8A8A8;
border-left-style: none;
border-left-width: 2px;
border-left-color: #D3D3D3;
}
#mwlefoodfi .gt_caption {
padding-top: 4px;
padding-bottom: 4px;
}
#mwlefoodfi .gt_title {
color: #333333;
font-size: 125%;
font-weight: initial;
padding-top: 4px;
padding-bottom: 4px;
padding-left: 5px;
padding-right: 5px;
border-bottom-color: #FFFFFF;
border-bottom-width: 0;
}
#mwlefoodfi .gt_subtitle {
color: #333333;
font-size: 85%;
font-weight: initial;
padding-top: 3px;
padding-bottom: 5px;
padding-left: 5px;
padding-right: 5px;
border-top-color: #FFFFFF;
border-top-width: 0;
}
#mwlefoodfi .gt_heading {
background-color: #FFFFFF;
text-align: center;
border-bottom-color: #FFFFFF;
border-left-style: none;
border-left-width: 1px;
border-left-color: #D3D3D3;
border-right-style: none;
border-right-width: 1px;
border-right-color: #D3D3D3;
}
#mwlefoodfi .gt_bottom_border {
border-bottom-style: solid;
border-bottom-width: 2px;
border-bottom-color: #D3D3D3;
}
#mwlefoodfi .gt_col_headings {
border-top-style: solid;
border-top-width: 2px;
border-top-color: #D3D3D3;
border-bottom-style: solid;
border-bottom-width: 2px;
border-bottom-color: #D3D3D3;
border-left-style: none;
border-left-width: 1px;
border-left-color: #D3D3D3;
border-right-style: none;
border-right-width: 1px;
border-right-color: #D3D3D3;
}
#mwlefoodfi .gt_col_heading {
color: #333333;
background-color: #FFFFFF;
font-size: 100%;
font-weight: normal;
text-transform: inherit;
border-left-style: none;
border-left-width: 1px;
border-left-color: #D3D3D3;
border-right-style: none;
border-right-width: 1px;
border-right-color: #D3D3D3;
vertical-align: bottom;
padding-top: 5px;
padding-bottom: 6px;
padding-left: 5px;
padding-right: 5px;
overflow-x: hidden;
}
#mwlefoodfi .gt_column_spanner_outer {
color: #333333;
background-color: #FFFFFF;
font-size: 100%;
font-weight: normal;
text-transform: inherit;
padding-top: 0;
padding-bottom: 0;
padding-left: 4px;
padding-right: 4px;
}
#mwlefoodfi .gt_column_spanner_outer:first-child {
padding-left: 0;
}
#mwlefoodfi .gt_column_spanner_outer:last-child {
padding-right: 0;
}
#mwlefoodfi .gt_column_spanner {
border-bottom-style: solid;
border-bottom-width: 2px;
border-bottom-color: #D3D3D3;
vertical-align: bottom;
padding-top: 5px;
padding-bottom: 5px;
overflow-x: hidden;
display: inline-block;
width: 100%;
}
#mwlefoodfi .gt_spanner_row {
border-bottom-style: hidden;
}
#mwlefoodfi .gt_group_heading {
padding-top: 8px;
padding-bottom: 8px;
padding-left: 5px;
padding-right: 5px;
color: #333333;
background-color: #FFFFFF;
font-size: 100%;
font-weight: initial;
text-transform: inherit;
border-top-style: solid;
border-top-width: 2px;
border-top-color: #D3D3D3;
border-bottom-style: solid;
border-bottom-width: 2px;
border-bottom-color: #D3D3D3;
border-left-style: none;
border-left-width: 1px;
border-left-color: #D3D3D3;
border-right-style: none;
border-right-width: 1px;
border-right-color: #D3D3D3;
vertical-align: middle;
text-align: left;
}
#mwlefoodfi .gt_empty_group_heading {
padding: 0.5px;
color: #333333;
background-color: #FFFFFF;
font-size: 100%;
font-weight: initial;
border-top-style: solid;
border-top-width: 2px;
border-top-color: #D3D3D3;
border-bottom-style: solid;
border-bottom-width: 2px;
border-bottom-color: #D3D3D3;
vertical-align: middle;
}
#mwlefoodfi .gt_from_md > :first-child {
margin-top: 0;
}
#mwlefoodfi .gt_from_md > :last-child {
margin-bottom: 0;
}
#mwlefoodfi .gt_row {
padding-top: 8px;
padding-bottom: 8px;
padding-left: 5px;
padding-right: 5px;
margin: 10px;
border-top-style: solid;
border-top-width: 1px;
border-top-color: #D3D3D3;
border-left-style: none;
border-left-width: 1px;
border-left-color: #D3D3D3;
border-right-style: none;
border-right-width: 1px;
border-right-color: #D3D3D3;
vertical-align: middle;
overflow-x: hidden;
}
#mwlefoodfi .gt_stub {
color: #333333;
background-color: #FFFFFF;
font-size: 100%;
font-weight: initial;
text-transform: inherit;
border-right-style: solid;
border-right-width: 2px;
border-right-color: #D3D3D3;
padding-left: 5px;
padding-right: 5px;
}
#mwlefoodfi .gt_stub_row_group {
color: #333333;
background-color: #FFFFFF;
font-size: 100%;
font-weight: initial;
text-transform: inherit;
border-right-style: solid;
border-right-width: 2px;
border-right-color: #D3D3D3;
padding-left: 5px;
padding-right: 5px;
vertical-align: top;
}
#mwlefoodfi .gt_row_group_first td {
border-top-width: 2px;
}
#mwlefoodfi .gt_row_group_first th {
border-top-width: 2px;
}
#mwlefoodfi .gt_summary_row {
color: #333333;
background-color: #FFFFFF;
text-transform: inherit;
padding-top: 8px;
padding-bottom: 8px;
padding-left: 5px;
padding-right: 5px;
}
#mwlefoodfi .gt_first_summary_row {
border-top-style: solid;
border-top-color: #D3D3D3;
}
#mwlefoodfi .gt_first_summary_row.thick {
border-top-width: 2px;
}
#mwlefoodfi .gt_last_summary_row {
padding-top: 8px;
padding-bottom: 8px;
padding-left: 5px;
padding-right: 5px;
border-bottom-style: solid;
border-bottom-width: 2px;
border-bottom-color: #D3D3D3;
}
#mwlefoodfi .gt_grand_summary_row {
color: #333333;
background-color: #FFFFFF;
text-transform: inherit;
padding-top: 8px;
padding-bottom: 8px;
padding-left: 5px;
padding-right: 5px;
}
#mwlefoodfi .gt_first_grand_summary_row {
padding-top: 8px;
padding-bottom: 8px;
padding-left: 5px;
padding-right: 5px;
border-top-style: double;
border-top-width: 6px;
border-top-color: #D3D3D3;
}
#mwlefoodfi .gt_last_grand_summary_row_top {
padding-top: 8px;
padding-bottom: 8px;
padding-left: 5px;
padding-right: 5px;
border-bottom-style: double;
border-bottom-width: 6px;
border-bottom-color: #D3D3D3;
}
#mwlefoodfi .gt_striped {
background-color: rgba(128, 128, 128, 0.05);
}
#mwlefoodfi .gt_table_body {
border-top-style: solid;
border-top-width: 2px;
border-top-color: #D3D3D3;
border-bottom-style: solid;
border-bottom-width: 2px;
border-bottom-color: #D3D3D3;
}
#mwlefoodfi .gt_footnotes {
color: #333333;
background-color: #FFFFFF;
border-bottom-style: none;
border-bottom-width: 2px;
border-bottom-color: #D3D3D3;
border-left-style: none;
border-left-width: 2px;
border-left-color: #D3D3D3;
border-right-style: none;
border-right-width: 2px;
border-right-color: #D3D3D3;
}
#mwlefoodfi .gt_footnote {
margin: 0px;
font-size: 90%;
padding-top: 4px;
padding-bottom: 4px;
padding-left: 5px;
padding-right: 5px;
}
#mwlefoodfi .gt_sourcenotes {
color: #333333;
background-color: #FFFFFF;
border-bottom-style: none;
border-bottom-width: 2px;
border-bottom-color: #D3D3D3;
border-left-style: none;
border-left-width: 2px;
border-left-color: #D3D3D3;
border-right-style: none;
border-right-width: 2px;
border-right-color: #D3D3D3;
}
#mwlefoodfi .gt_sourcenote {
font-size: 90%;
padding-top: 4px;
padding-bottom: 4px;
padding-left: 5px;
padding-right: 5px;
}
#mwlefoodfi .gt_left {
text-align: left;
}
#mwlefoodfi .gt_center {
text-align: center;
}
#mwlefoodfi .gt_right {
text-align: right;
font-variant-numeric: tabular-nums;
}
#mwlefoodfi .gt_font_normal {
font-weight: normal;
}
#mwlefoodfi .gt_font_bold {
font-weight: bold;
}
#mwlefoodfi .gt_font_italic {
font-style: italic;
}
#mwlefoodfi .gt_super {
font-size: 65%;
}
#mwlefoodfi .gt_footnote_marks {
font-size: 75%;
vertical-align: 0.4em;
position: initial;
}
#mwlefoodfi .gt_asterisk {
font-size: 100%;
vertical-align: 0;
}
#mwlefoodfi .gt_indent_1 {
text-indent: 5px;
}
#mwlefoodfi .gt_indent_2 {
text-indent: 10px;
}
#mwlefoodfi .gt_indent_3 {
text-indent: 15px;
}
#mwlefoodfi .gt_indent_4 {
text-indent: 20px;
}
#mwlefoodfi .gt_indent_5 {
text-indent: 25px;
}
#mwlefoodfi .katex-display {
display: inline-flex !important;
margin-bottom: 0.75em !important;
}
#mwlefoodfi div.Reactable > div.rt-table > div.rt-thead > div.rt-tr.rt-tr-group-header > div.rt-th-group:after {
height: 0px !important;
}
</style>
<table class="table gt_table" data-quarto-disable-processing="false" data-quarto-bootstrap="false">
<thead><tr class="gt_col_headings">
<th class="gt_col_heading gt_columns_bottom_border gt_right" rowspan="1" colspan="1" scope="col" id="record_id">record_id</th>
<th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" scope="col" id="redcap_event_name">redcap_event_name</th>
<th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" scope="col" id="redcap_repeat_instrument">redcap_repeat_instrument</th>
<th class="gt_col_heading gt_columns_bottom_border gt_right" rowspan="1" colspan="1" scope="col" id="redcap_repeat_instance">redcap_repeat_instance</th>
<th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" scope="col" id="cpr">cpr</th>
<th class="gt_col_heading gt_columns_bottom_border gt_right" rowspan="1" colspan="1" scope="col" id="inclusion">inclusion</th>
<th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="inclusion_time">inclusion_time</th>
<th class="gt_col_heading gt_columns_bottom_border gt_right" rowspan="1" colspan="1" scope="col" id="dob">dob</th>
<th class="gt_col_heading gt_columns_bottom_border gt_right" rowspan="1" colspan="1" scope="col" id="age">age</th>
<th class="gt_col_heading gt_columns_bottom_border gt_right" rowspan="1" colspan="1" scope="col" id="age_integer">age_integer</th>
<th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" scope="col" id="sex">sex</th>
<th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" scope="col" id="cohabitation">cohabitation</th>
<th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" scope="col" id="hypertension">hypertension</th>
<th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" scope="col" id="diabetes">diabetes</th>
<th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" scope="col" id="region">region</th>
<th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" scope="col" id="baseline_data_start_complete">baseline_data_start_complete</th>
<th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" scope="col" id="mrs_assessed">mrs_assessed</th>
<th class="gt_col_heading gt_columns_bottom_border gt_right" rowspan="1" colspan="1" scope="col" id="mrs_date">mrs_date</th>
<th class="gt_col_heading gt_columns_bottom_border gt_right" rowspan="1" colspan="1" scope="col" id="mrs_score">mrs_score</th>
<th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" scope="col" id="mrs_complete">mrs_complete</th>
<th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="con_mrs">con_mrs</th>
<th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="con_calc">con_calc</th>
<th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" scope="col" id="consensus_complete">consensus_complete</th>
<th class="gt_col_heading gt_columns_bottom_border gt_right" rowspan="1" colspan="1" scope="col" id="event_datetime">event_datetime</th>
<th class="gt_col_heading gt_columns_bottom_border gt_right" rowspan="1" colspan="1" scope="col" id="event_age">event_age</th>
<th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" scope="col" id="event_type">event_type</th>
<th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" scope="col" id="new_event_complete">new_event_complete</th>
</tr></thead>
<tbody class="gt_table_body">
<tr>
<td headers="record_id" class="gt_row gt_right">1</td>
<td headers="redcap_event_name" class="gt_row gt_left">inclusion</td>
<td headers="redcap_repeat_instrument" class="gt_row gt_left">NA</td>
<td headers="redcap_repeat_instance" class="gt_row gt_right">NA</td>
<td headers="cpr" class="gt_row gt_left">1203401OB4</td>
<td headers="inclusion" class="gt_row gt_right">2023-03-13</td>
<td headers="inclusion_time" class="gt_row gt_center">12:38:49</td>
<td headers="dob" class="gt_row gt_right">1940-03-12</td>
<td headers="age" class="gt_row gt_right">83.00239</td>
<td headers="age_integer" class="gt_row gt_right">83</td>
<td headers="sex" class="gt_row gt_left">female</td>
<td headers="cohabitation" class="gt_row gt_left">Yes</td>
<td headers="hypertension" class="gt_row gt_left">No</td>
<td headers="diabetes" class="gt_row gt_left">Yes</td>
<td headers="region" class="gt_row gt_left">East</td>
<td headers="baseline_data_start_complete" class="gt_row gt_left">Incomplete</td>
<td headers="mrs_assessed" class="gt_row gt_left">Yes</td>
<td headers="mrs_date" class="gt_row gt_right">2023-03-13</td>
<td headers="mrs_score" class="gt_row gt_right">1</td>
<td headers="mrs_complete" class="gt_row gt_left">Incomplete</td>
<td headers="con_mrs" class="gt_row gt_center">NA</td>
<td headers="con_calc" class="gt_row gt_center">NA</td>
<td headers="consensus_complete" class="gt_row gt_left">NA</td>
<td headers="event_datetime" class="gt_row gt_right">NA</td>
<td headers="event_age" class="gt_row gt_right">NA</td>
<td headers="event_type" class="gt_row gt_left">NA</td>
<td headers="new_event_complete" class="gt_row gt_left">NA</td>
</tr>
<tr>
<td headers="record_id" class="gt_row gt_right">2</td>
<td headers="redcap_event_name" class="gt_row gt_left">inclusion</td>
<td headers="redcap_repeat_instrument" class="gt_row gt_left">NA</td>
<td headers="redcap_repeat_instance" class="gt_row gt_right">NA</td>
<td headers="cpr" class="gt_row gt_left">0102342303</td>
<td headers="inclusion" class="gt_row gt_right">2023-03-01</td>
<td headers="inclusion_time" class="gt_row gt_center">10:38:57</td>
<td headers="dob" class="gt_row gt_right">1934-02-01</td>
<td headers="age" class="gt_row gt_right">89.07780</td>
<td headers="age_integer" class="gt_row gt_right">89</td>
<td headers="sex" class="gt_row gt_left">male</td>
<td headers="cohabitation" class="gt_row gt_left">Yes</td>
<td headers="hypertension" class="gt_row gt_left">No</td>
<td headers="diabetes" class="gt_row gt_left">No</td>
<td headers="region" class="gt_row gt_left">South</td>
<td headers="baseline_data_start_complete" class="gt_row gt_left">Incomplete</td>
<td headers="mrs_assessed" class="gt_row gt_left">Yes</td>
<td headers="mrs_date" class="gt_row gt_right">2023-03-07</td>
<td headers="mrs_score" class="gt_row gt_right">1</td>
<td headers="mrs_complete" class="gt_row gt_left">Incomplete</td>
<td headers="con_mrs" class="gt_row gt_center">NA</td>
<td headers="con_calc" class="gt_row gt_center">NA</td>
<td headers="consensus_complete" class="gt_row gt_left">NA</td>
<td headers="event_datetime" class="gt_row gt_right">NA</td>
<td headers="event_age" class="gt_row gt_right">NA</td>
<td headers="event_type" class="gt_row gt_left">NA</td>
<td headers="new_event_complete" class="gt_row gt_left">NA</td>
</tr>
<tr>
<td headers="record_id" class="gt_row gt_right">2</td>
<td headers="redcap_event_name" class="gt_row gt_left">follow1</td>
<td headers="redcap_repeat_instrument" class="gt_row gt_left">NA</td>
<td headers="redcap_repeat_instance" class="gt_row gt_right">NA</td>
<td headers="cpr" class="gt_row gt_left">NA</td>
<td headers="inclusion" class="gt_row gt_right">NA</td>
<td headers="inclusion_time" class="gt_row gt_center">NA</td>
<td headers="dob" class="gt_row gt_right">NA</td>
<td headers="age" class="gt_row gt_right">NA</td>
<td headers="age_integer" class="gt_row gt_right">NA</td>
<td headers="sex" class="gt_row gt_left">NA</td>
<td headers="cohabitation" class="gt_row gt_left">NA</td>
<td headers="hypertension" class="gt_row gt_left">NA</td>
<td headers="diabetes" class="gt_row gt_left">NA</td>
<td headers="region" class="gt_row gt_left">NA</td>
<td headers="baseline_data_start_complete" class="gt_row gt_left">NA</td>
<td headers="mrs_assessed" class="gt_row gt_left">Yes</td>
<td headers="mrs_date" class="gt_row gt_right">2023-03-09</td>
<td headers="mrs_score" class="gt_row gt_right">3</td>
<td headers="mrs_complete" class="gt_row gt_left">Incomplete</td>
<td headers="con_mrs" class="gt_row gt_center">NA</td>
<td headers="con_calc" class="gt_row gt_center">NA</td>
<td headers="consensus_complete" class="gt_row gt_left">Incomplete</td>
<td headers="event_datetime" class="gt_row gt_right">NA</td>
<td headers="event_age" class="gt_row gt_right">NA</td>
<td headers="event_type" class="gt_row gt_left">NA</td>
<td headers="new_event_complete" class="gt_row gt_left">NA</td>
</tr>
<tr>
<td headers="record_id" class="gt_row gt_right">2</td>
<td headers="redcap_event_name" class="gt_row gt_left">follow1</td>
<td headers="redcap_repeat_instrument" class="gt_row gt_left">New Event (?)</td>
<td headers="redcap_repeat_instance" class="gt_row gt_right">1</td>
<td headers="cpr" class="gt_row gt_left">NA</td>
<td headers="inclusion" class="gt_row gt_right">NA</td>
<td headers="inclusion_time" class="gt_row gt_center">NA</td>
<td headers="dob" class="gt_row gt_right">NA</td>
<td headers="age" class="gt_row gt_right">NA</td>
<td headers="age_integer" class="gt_row gt_right">NA</td>
<td headers="sex" class="gt_row gt_left">NA</td>
<td headers="cohabitation" class="gt_row gt_left">NA</td>
<td headers="hypertension" class="gt_row gt_left">NA</td>
<td headers="diabetes" class="gt_row gt_left">NA</td>
<td headers="region" class="gt_row gt_left">NA</td>
<td headers="baseline_data_start_complete" class="gt_row gt_left">NA</td>
<td headers="mrs_assessed" class="gt_row gt_left">NA</td>
<td headers="mrs_date" class="gt_row gt_right">NA</td>
<td headers="mrs_score" class="gt_row gt_right">NA</td>
<td headers="mrs_complete" class="gt_row gt_left">NA</td>
<td headers="con_mrs" class="gt_row gt_center">NA</td>
<td headers="con_calc" class="gt_row gt_center">NA</td>
<td headers="consensus_complete" class="gt_row gt_left">NA</td>
<td headers="event_datetime" class="gt_row gt_right">2024-01-18 12:49:42</td>
<td headers="event_age" class="gt_row gt_right">NA</td>
<td headers="event_type" class="gt_row gt_left">TIA</td>
<td headers="new_event_complete" class="gt_row gt_left">Incomplete</td>
</tr>
<tr>
<td headers="record_id" class="gt_row gt_right">3</td>
<td headers="redcap_event_name" class="gt_row gt_left">inclusion</td>
<td headers="redcap_repeat_instrument" class="gt_row gt_left">NA</td>
<td headers="redcap_repeat_instance" class="gt_row gt_right">NA</td>
<td headers="cpr" class="gt_row gt_left">2301569823</td>
<td headers="inclusion" class="gt_row gt_right">2022-03-08</td>
<td headers="inclusion_time" class="gt_row gt_center">12:01:07</td>
<td headers="dob" class="gt_row gt_right">1956-01-23</td>
<td headers="age" class="gt_row gt_right">66.12319</td>
<td headers="age_integer" class="gt_row gt_right">66</td>
<td headers="sex" class="gt_row gt_left">male</td>
<td headers="cohabitation" class="gt_row gt_left">No</td>
<td headers="hypertension" class="gt_row gt_left">Yes</td>
<td headers="diabetes" class="gt_row gt_left">Yes</td>
<td headers="region" class="gt_row gt_left">North</td>
<td headers="baseline_data_start_complete" class="gt_row gt_left">Incomplete</td>
<td headers="mrs_assessed" class="gt_row gt_left">NA</td>
<td headers="mrs_date" class="gt_row gt_right">NA</td>
<td headers="mrs_score" class="gt_row gt_right">NA</td>
<td headers="mrs_complete" class="gt_row gt_left">Incomplete</td>
<td headers="con_mrs" class="gt_row gt_center">NA</td>
<td headers="con_calc" class="gt_row gt_center">NA</td>
<td headers="consensus_complete" class="gt_row gt_left">NA</td>
<td headers="event_datetime" class="gt_row gt_right">NA</td>
<td headers="event_age" class="gt_row gt_right">NA</td>
<td headers="event_type" class="gt_row gt_left">NA</td>
<td headers="new_event_complete" class="gt_row gt_left">NA</td>
</tr>
<tr>
<td headers="record_id" class="gt_row gt_right">3</td>
<td headers="redcap_event_name" class="gt_row gt_left">follow1</td>
<td headers="redcap_repeat_instrument" class="gt_row gt_left">NA</td>
<td headers="redcap_repeat_instance" class="gt_row gt_right">NA</td>
<td headers="cpr" class="gt_row gt_left">NA</td>
<td headers="inclusion" class="gt_row gt_right">NA</td>
<td headers="inclusion_time" class="gt_row gt_center">NA</td>
<td headers="dob" class="gt_row gt_right">NA</td>
<td headers="age" class="gt_row gt_right">NA</td>
<td headers="age_integer" class="gt_row gt_right">NA</td>
<td headers="sex" class="gt_row gt_left">NA</td>
<td headers="cohabitation" class="gt_row gt_left">NA</td>
<td headers="hypertension" class="gt_row gt_left">NA</td>
<td headers="diabetes" class="gt_row gt_left">NA</td>
<td headers="region" class="gt_row gt_left">NA</td>
<td headers="baseline_data_start_complete" class="gt_row gt_left">NA</td>
<td headers="mrs_assessed" class="gt_row gt_left">Yes</td>
<td headers="mrs_date" class="gt_row gt_right">2022-08-16</td>
<td headers="mrs_score" class="gt_row gt_right">2</td>
<td headers="mrs_complete" class="gt_row gt_left">Incomplete</td>
<td headers="con_mrs" class="gt_row gt_center">NA</td>
<td headers="con_calc" class="gt_row gt_center">NA</td>
<td headers="consensus_complete" class="gt_row gt_left">Incomplete</td>
<td headers="event_datetime" class="gt_row gt_right">NA</td>
<td headers="event_age" class="gt_row gt_right">NA</td>
<td headers="event_type" class="gt_row gt_left">NA</td>
<td headers="new_event_complete" class="gt_row gt_left">NA</td>
</tr>
<tr>
<td headers="record_id" class="gt_row gt_right">3</td>
<td headers="redcap_event_name" class="gt_row gt_left">follow2</td>
<td headers="redcap_repeat_instrument" class="gt_row gt_left">NA</td>
<td headers="redcap_repeat_instance" class="gt_row gt_right">NA</td>
<td headers="cpr" class="gt_row gt_left">NA</td>
<td headers="inclusion" class="gt_row gt_right">NA</td>
<td headers="inclusion_time" class="gt_row gt_center">NA</td>
<td headers="dob" class="gt_row gt_right">NA</td>
<td headers="age" class="gt_row gt_right">NA</td>
<td headers="age_integer" class="gt_row gt_right">NA</td>
<td headers="sex" class="gt_row gt_left">NA</td>
<td headers="cohabitation" class="gt_row gt_left">NA</td>
<td headers="hypertension" class="gt_row gt_left">NA</td>
<td headers="diabetes" class="gt_row gt_left">NA</td>
<td headers="region" class="gt_row gt_left">NA</td>
<td headers="baseline_data_start_complete" class="gt_row gt_left">NA</td>
<td headers="mrs_assessed" class="gt_row gt_left">Yes</td>
<td headers="mrs_date" class="gt_row gt_right">2023-03-13</td>
<td headers="mrs_score" class="gt_row gt_right">1</td>
<td headers="mrs_complete" class="gt_row gt_left">Incomplete</td>
<td headers="con_mrs" class="gt_row gt_center">NA</td>
<td headers="con_calc" class="gt_row gt_center">NA</td>
<td headers="consensus_complete" class="gt_row gt_left">Incomplete</td>
<td headers="event_datetime" class="gt_row gt_right">NA</td>
<td headers="event_age" class="gt_row gt_right">NA</td>
<td headers="event_type" class="gt_row gt_left">NA</td>
<td headers="new_event_complete" class="gt_row gt_left">NA</td>
</tr>
<tr>
<td headers="record_id" class="gt_row gt_right">3</td>
<td headers="redcap_event_name" class="gt_row gt_left">follow1</td>
<td headers="redcap_repeat_instrument" class="gt_row gt_left">New Event (?)</td>
<td headers="redcap_repeat_instance" class="gt_row gt_right">1</td>
<td headers="cpr" class="gt_row gt_left">NA</td>
<td headers="inclusion" class="gt_row gt_right">NA</td>
<td headers="inclusion_time" class="gt_row gt_center">NA</td>
<td headers="dob" class="gt_row gt_right">NA</td>
<td headers="age" class="gt_row gt_right">NA</td>
<td headers="age_integer" class="gt_row gt_right">NA</td>
<td headers="sex" class="gt_row gt_left">NA</td>
<td headers="cohabitation" class="gt_row gt_left">NA</td>
<td headers="hypertension" class="gt_row gt_left">NA</td>
<td headers="diabetes" class="gt_row gt_left">NA</td>
<td headers="region" class="gt_row gt_left">NA</td>
<td headers="baseline_data_start_complete" class="gt_row gt_left">NA</td>
<td headers="mrs_assessed" class="gt_row gt_left">NA</td>
<td headers="mrs_date" class="gt_row gt_right">NA</td>
<td headers="mrs_score" class="gt_row gt_right">NA</td>
<td headers="mrs_complete" class="gt_row gt_left">NA</td>
<td headers="con_mrs" class="gt_row gt_center">NA</td>
<td headers="con_calc" class="gt_row gt_center">NA</td>
<td headers="consensus_complete" class="gt_row gt_left">NA</td>
<td headers="event_datetime" class="gt_row gt_right">2024-01-18 12:49:58</td>
<td headers="event_age" class="gt_row gt_right">NA</td>
<td headers="event_type" class="gt_row gt_left">AIS</td>
<td headers="new_event_complete" class="gt_row gt_left">Incomplete</td>
</tr>
<tr>
<td headers="record_id" class="gt_row gt_right">3</td>
<td headers="redcap_event_name" class="gt_row gt_left">follow1</td>
<td headers="redcap_repeat_instrument" class="gt_row gt_left">New Event (?)</td>
<td headers="redcap_repeat_instance" class="gt_row gt_right">2</td>
<td headers="cpr" class="gt_row gt_left">NA</td>
<td headers="inclusion" class="gt_row gt_right">NA</td>
<td headers="inclusion_time" class="gt_row gt_center">NA</td>
<td headers="dob" class="gt_row gt_right">NA</td>
<td headers="age" class="gt_row gt_right">NA</td>
<td headers="age_integer" class="gt_row gt_right">NA</td>
<td headers="sex" class="gt_row gt_left">NA</td>
<td headers="cohabitation" class="gt_row gt_left">NA</td>
<td headers="hypertension" class="gt_row gt_left">NA</td>
<td headers="diabetes" class="gt_row gt_left">NA</td>
<td headers="region" class="gt_row gt_left">NA</td>
<td headers="baseline_data_start_complete" class="gt_row gt_left">NA</td>
<td headers="mrs_assessed" class="gt_row gt_left">NA</td>
<td headers="mrs_date" class="gt_row gt_right">NA</td>
<td headers="mrs_score" class="gt_row gt_right">NA</td>
<td headers="mrs_complete" class="gt_row gt_left">NA</td>
<td headers="con_mrs" class="gt_row gt_center">NA</td>
<td headers="con_calc" class="gt_row gt_center">NA</td>
<td headers="consensus_complete" class="gt_row gt_left">NA</td>
<td headers="event_datetime" class="gt_row gt_right">2024-01-18 12:50:01</td>
<td headers="event_age" class="gt_row gt_right">NA</td>
<td headers="event_type" class="gt_row gt_left">ICH</td>
<td headers="new_event_complete" class="gt_row gt_left">Incomplete</td>
</tr>
<tr>
<td headers="record_id" class="gt_row gt_right">3</td>
<td headers="redcap_event_name" class="gt_row gt_left">follow2</td>
<td headers="redcap_repeat_instrument" class="gt_row gt_left">New Event (?)</td>
<td headers="redcap_repeat_instance" class="gt_row gt_right">1</td>
<td headers="cpr" class="gt_row gt_left">NA</td>
<td headers="inclusion" class="gt_row gt_right">NA</td>
<td headers="inclusion_time" class="gt_row gt_center">NA</td>
<td headers="dob" class="gt_row gt_right">NA</td>
<td headers="age" class="gt_row gt_right">NA</td>
<td headers="age_integer" class="gt_row gt_right">NA</td>
<td headers="sex" class="gt_row gt_left">NA</td>
<td headers="cohabitation" class="gt_row gt_left">NA</td>
<td headers="hypertension" class="gt_row gt_left">NA</td>
<td headers="diabetes" class="gt_row gt_left">NA</td>
<td headers="region" class="gt_row gt_left">NA</td>
<td headers="baseline_data_start_complete" class="gt_row gt_left">NA</td>
<td headers="mrs_assessed" class="gt_row gt_left">NA</td>
<td headers="mrs_date" class="gt_row gt_right">NA</td>
<td headers="mrs_score" class="gt_row gt_right">NA</td>
<td headers="mrs_complete" class="gt_row gt_left">NA</td>
<td headers="con_mrs" class="gt_row gt_center">NA</td>
<td headers="con_calc" class="gt_row gt_center">NA</td>
<td headers="consensus_complete" class="gt_row gt_left">NA</td>
<td headers="event_datetime" class="gt_row gt_right">2024-01-18 12:50:05</td>
<td headers="event_age" class="gt_row gt_right">NA</td>
<td headers="event_type" class="gt_row gt_left">ICH</td>
<td headers="new_event_complete" class="gt_row gt_left">Incomplete</td>
</tr>
<tr>
<td headers="record_id" class="gt_row gt_right">3</td>
<td headers="redcap_event_name" class="gt_row gt_left">follow2</td>
<td headers="redcap_repeat_instrument" class="gt_row gt_left">New Event (?)</td>
<td headers="redcap_repeat_instance" class="gt_row gt_right">2</td>
<td headers="cpr" class="gt_row gt_left">NA</td>
<td headers="inclusion" class="gt_row gt_right">NA</td>
<td headers="inclusion_time" class="gt_row gt_center">NA</td>
<td headers="dob" class="gt_row gt_right">NA</td>
<td headers="age" class="gt_row gt_right">NA</td>
<td headers="age_integer" class="gt_row gt_right">NA</td>
<td headers="sex" class="gt_row gt_left">NA</td>
<td headers="cohabitation" class="gt_row gt_left">NA</td>
<td headers="hypertension" class="gt_row gt_left">NA</td>
<td headers="diabetes" class="gt_row gt_left">NA</td>
<td headers="region" class="gt_row gt_left">NA</td>
<td headers="baseline_data_start_complete" class="gt_row gt_left">NA</td>
<td headers="mrs_assessed" class="gt_row gt_left">NA</td>
<td headers="mrs_date" class="gt_row gt_right">NA</td>
<td headers="mrs_score" class="gt_row gt_right">NA</td>
<td headers="mrs_complete" class="gt_row gt_left">NA</td>
<td headers="con_mrs" class="gt_row gt_center">NA</td>
<td headers="con_calc" class="gt_row gt_center">NA</td>
<td headers="consensus_complete" class="gt_row gt_left">NA</td>
<td headers="event_datetime" class="gt_row gt_right">2024-01-18 12:50:07</td>
<td headers="event_age" class="gt_row gt_right">NA</td>
<td headers="event_type" class="gt_row gt_left">TIA</td>
<td headers="new_event_complete" class="gt_row gt_left">Incomplete</td>
</tr>
<tr>
<td headers="record_id" class="gt_row gt_right">3</td>
<td headers="redcap_event_name" class="gt_row gt_left">follow2</td>
<td headers="redcap_repeat_instrument" class="gt_row gt_left">New Event (?)</td>
<td headers="redcap_repeat_instance" class="gt_row gt_right">3</td>
<td headers="cpr" class="gt_row gt_left">NA</td>
<td headers="inclusion" class="gt_row gt_right">NA</td>
<td headers="inclusion_time" class="gt_row gt_center">NA</td>
<td headers="dob" class="gt_row gt_right">NA</td>
<td headers="age" class="gt_row gt_right">NA</td>
<td headers="age_integer" class="gt_row gt_right">NA</td>
<td headers="sex" class="gt_row gt_left">NA</td>
<td headers="cohabitation" class="gt_row gt_left">NA</td>
<td headers="hypertension" class="gt_row gt_left">NA</td>
<td headers="diabetes" class="gt_row gt_left">NA</td>
<td headers="region" class="gt_row gt_left">NA</td>
<td headers="baseline_data_start_complete" class="gt_row gt_left">NA</td>
<td headers="mrs_assessed" class="gt_row gt_left">NA</td>
<td headers="mrs_date" class="gt_row gt_right">NA</td>
<td headers="mrs_score" class="gt_row gt_right">NA</td>
<td headers="mrs_complete" class="gt_row gt_left">NA</td>
<td headers="con_mrs" class="gt_row gt_center">NA</td>
<td headers="con_calc" class="gt_row gt_center">NA</td>
<td headers="consensus_complete" class="gt_row gt_left">NA</td>
<td headers="event_datetime" class="gt_row gt_right">2024-01-18 12:50:09</td>
<td headers="event_age" class="gt_row gt_right">NA</td>
<td headers="event_type" class="gt_row gt_left">AIS</td>
<td headers="new_event_complete" class="gt_row gt_left">Incomplete</td>
</tr>
<tr>
<td headers="record_id" class="gt_row gt_right">4</td>
<td headers="redcap_event_name" class="gt_row gt_left">inclusion</td>
<td headers="redcap_repeat_instrument" class="gt_row gt_left">NA</td>
<td headers="redcap_repeat_instance" class="gt_row gt_right">NA</td>
<td headers="cpr" class="gt_row gt_left">0204051342</td>
<td headers="inclusion" class="gt_row gt_right">2023-03-14</td>
<td headers="inclusion_time" class="gt_row gt_center">20:39:19</td>
<td headers="dob" class="gt_row gt_right">1905-04-02</td>
<td headers="age" class="gt_row gt_right">117.94903</td>
<td headers="age_integer" class="gt_row gt_right">117</td>
<td headers="sex" class="gt_row gt_left">female</td>
<td headers="cohabitation" class="gt_row gt_left">NA</td>
<td headers="hypertension" class="gt_row gt_left">NA</td>
<td headers="diabetes" class="gt_row gt_left">NA</td>
<td headers="region" class="gt_row gt_left">NA</td>
<td headers="baseline_data_start_complete" class="gt_row gt_left">Incomplete</td>
<td headers="mrs_assessed" class="gt_row gt_left">NA</td>
<td headers="mrs_date" class="gt_row gt_right">NA</td>
<td headers="mrs_score" class="gt_row gt_right">NA</td>
<td headers="mrs_complete" class="gt_row gt_left">Incomplete</td>
<td headers="con_mrs" class="gt_row gt_center">NA</td>
<td headers="con_calc" class="gt_row gt_center">NA</td>
<td headers="consensus_complete" class="gt_row gt_left">NA</td>
<td headers="event_datetime" class="gt_row gt_right">NA</td>
<td headers="event_age" class="gt_row gt_right">NA</td>
<td headers="event_type" class="gt_row gt_left">NA</td>
<td headers="new_event_complete" class="gt_row gt_left">NA</td>
</tr>
<tr>
<td headers="record_id" class="gt_row gt_right">4</td>
<td headers="redcap_event_name" class="gt_row gt_left">follow1</td>
<td headers="redcap_repeat_instrument" class="gt_row gt_left">NA</td>
<td headers="redcap_repeat_instance" class="gt_row gt_right">NA</td>
<td headers="cpr" class="gt_row gt_left">NA</td>
<td headers="inclusion" class="gt_row gt_right">NA</td>
<td headers="inclusion_time" class="gt_row gt_center">NA</td>
<td headers="dob" class="gt_row gt_right">NA</td>
<td headers="age" class="gt_row gt_right">NA</td>
<td headers="age_integer" class="gt_row gt_right">NA</td>
<td headers="sex" class="gt_row gt_left">NA</td>
<td headers="cohabitation" class="gt_row gt_left">NA</td>
<td headers="hypertension" class="gt_row gt_left">NA</td>
<td headers="diabetes" class="gt_row gt_left">NA</td>
<td headers="region" class="gt_row gt_left">NA</td>
<td headers="baseline_data_start_complete" class="gt_row gt_left">NA</td>
<td headers="mrs_assessed" class="gt_row gt_left">NA</td>
<td headers="mrs_date" class="gt_row gt_right">NA</td>
<td headers="mrs_score" class="gt_row gt_right">NA</td>
<td headers="mrs_complete" class="gt_row gt_left">Incomplete</td>
<td headers="con_mrs" class="gt_row gt_center">NA</td>
<td headers="con_calc" class="gt_row gt_center">NA</td>
<td headers="consensus_complete" class="gt_row gt_left">Incomplete</td>
<td headers="event_datetime" class="gt_row gt_right">NA</td>
<td headers="event_age" class="gt_row gt_right">NA</td>
<td headers="event_type" class="gt_row gt_left">NA</td>
<td headers="new_event_complete" class="gt_row gt_left">NA</td>
</tr>
<tr>
<td headers="record_id" class="gt_row gt_right">4</td>
<td headers="redcap_event_name" class="gt_row gt_left">follow2</td>
<td headers="redcap_repeat_instrument" class="gt_row gt_left">NA</td>
<td headers="redcap_repeat_instance" class="gt_row gt_right">NA</td>
<td headers="cpr" class="gt_row gt_left">NA</td>
<td headers="inclusion" class="gt_row gt_right">NA</td>
<td headers="inclusion_time" class="gt_row gt_center">NA</td>
<td headers="dob" class="gt_row gt_right">NA</td>
<td headers="age" class="gt_row gt_right">NA</td>
<td headers="age_integer" class="gt_row gt_right">NA</td>
<td headers="sex" class="gt_row gt_left">NA</td>
<td headers="cohabitation" class="gt_row gt_left">NA</td>
<td headers="hypertension" class="gt_row gt_left">NA</td>
<td headers="diabetes" class="gt_row gt_left">NA</td>
<td headers="region" class="gt_row gt_left">NA</td>
<td headers="baseline_data_start_complete" class="gt_row gt_left">NA</td>
<td headers="mrs_assessed" class="gt_row gt_left">NA</td>
<td headers="mrs_date" class="gt_row gt_right">NA</td>
<td headers="mrs_score" class="gt_row gt_right">NA</td>
<td headers="mrs_complete" class="gt_row gt_left">Incomplete</td>
<td headers="con_mrs" class="gt_row gt_center">NA</td>
<td headers="con_calc" class="gt_row gt_center">NA</td>
<td headers="consensus_complete" class="gt_row gt_left">Incomplete</td>
<td headers="event_datetime" class="gt_row gt_right">NA</td>
<td headers="event_age" class="gt_row gt_right">NA</td>
<td headers="event_type" class="gt_row gt_left">NA</td>
<td headers="new_event_complete" class="gt_row gt_left">NA</td>
</tr>
<tr>
<td headers="record_id" class="gt_row gt_right">4</td>
<td headers="redcap_event_name" class="gt_row gt_left">follow1</td>
<td headers="redcap_repeat_instrument" class="gt_row gt_left">New Event (?)</td>
<td headers="redcap_repeat_instance" class="gt_row gt_right">1</td>
<td headers="cpr" class="gt_row gt_left">NA</td>
<td headers="inclusion" class="gt_row gt_right">NA</td>
<td headers="inclusion_time" class="gt_row gt_center">NA</td>
<td headers="dob" class="gt_row gt_right">NA</td>
<td headers="age" class="gt_row gt_right">NA</td>
<td headers="age_integer" class="gt_row gt_right">NA</td>
<td headers="sex" class="gt_row gt_left">NA</td>
<td headers="cohabitation" class="gt_row gt_left">NA</td>
<td headers="hypertension" class="gt_row gt_left">NA</td>
<td headers="diabetes" class="gt_row gt_left">NA</td>
<td headers="region" class="gt_row gt_left">NA</td>
<td headers="baseline_data_start_complete" class="gt_row gt_left">NA</td>
<td headers="mrs_assessed" class="gt_row gt_left">NA</td>
<td headers="mrs_date" class="gt_row gt_right">NA</td>
<td headers="mrs_score" class="gt_row gt_right">NA</td>
<td headers="mrs_complete" class="gt_row gt_left">NA</td>
<td headers="con_mrs" class="gt_row gt_center">NA</td>
<td headers="con_calc" class="gt_row gt_center">NA</td>
<td headers="consensus_complete" class="gt_row gt_left">NA</td>
<td headers="event_datetime" class="gt_row gt_right">2001-04-11 08:39:05</td>
<td headers="event_age" class="gt_row gt_right">96</td>
<td headers="event_type" class="gt_row gt_left">TIA</td>
<td headers="new_event_complete" class="gt_row gt_left">Complete</td>
</tr>
<tr>
<td headers="record_id" class="gt_row gt_right">4</td>
<td headers="redcap_event_name" class="gt_row gt_left">follow1</td>
<td headers="redcap_repeat_instrument" class="gt_row gt_left">New Event (?)</td>
<td headers="redcap_repeat_instance" class="gt_row gt_right">2</td>
<td headers="cpr" class="gt_row gt_left">NA</td>
<td headers="inclusion" class="gt_row gt_right">NA</td>
<td headers="inclusion_time" class="gt_row gt_center">NA</td>
<td headers="dob" class="gt_row gt_right">NA</td>
<td headers="age" class="gt_row gt_right">NA</td>
<td headers="age_integer" class="gt_row gt_right">NA</td>
<td headers="sex" class="gt_row gt_left">NA</td>
<td headers="cohabitation" class="gt_row gt_left">NA</td>
<td headers="hypertension" class="gt_row gt_left">NA</td>
<td headers="diabetes" class="gt_row gt_left">NA</td>
<td headers="region" class="gt_row gt_left">NA</td>
<td headers="baseline_data_start_complete" class="gt_row gt_left">NA</td>
<td headers="mrs_assessed" class="gt_row gt_left">NA</td>
<td headers="mrs_date" class="gt_row gt_right">NA</td>
<td headers="mrs_score" class="gt_row gt_right">NA</td>
<td headers="mrs_complete" class="gt_row gt_left">NA</td>
<td headers="con_mrs" class="gt_row gt_center">NA</td>
<td headers="con_calc" class="gt_row gt_center">NA</td>
<td headers="consensus_complete" class="gt_row gt_left">NA</td>
<td headers="event_datetime" class="gt_row gt_right">2010-04-11 08:39:25</td>
<td headers="event_age" class="gt_row gt_right">105</td>
<td headers="event_type" class="gt_row gt_left">TIA</td>
<td headers="new_event_complete" class="gt_row gt_left">Complete</td>
</tr>
<tr>
<td headers="record_id" class="gt_row gt_right">4</td>
<td headers="redcap_event_name" class="gt_row gt_left">follow2</td>
<td headers="redcap_repeat_instrument" class="gt_row gt_left">New Event (?)</td>
<td headers="redcap_repeat_instance" class="gt_row gt_right">1</td>
<td headers="cpr" class="gt_row gt_left">NA</td>
<td headers="inclusion" class="gt_row gt_right">NA</td>
<td headers="inclusion_time" class="gt_row gt_center">NA</td>
<td headers="dob" class="gt_row gt_right">NA</td>
<td headers="age" class="gt_row gt_right">NA</td>
<td headers="age_integer" class="gt_row gt_right">NA</td>
<td headers="sex" class="gt_row gt_left">NA</td>
<td headers="cohabitation" class="gt_row gt_left">NA</td>
<td headers="hypertension" class="gt_row gt_left">NA</td>
<td headers="diabetes" class="gt_row gt_left">NA</td>
<td headers="region" class="gt_row gt_left">NA</td>
<td headers="baseline_data_start_complete" class="gt_row gt_left">NA</td>
<td headers="mrs_assessed" class="gt_row gt_left">NA</td>
<td headers="mrs_date" class="gt_row gt_right">NA</td>
<td headers="mrs_score" class="gt_row gt_right">NA</td>
<td headers="mrs_complete" class="gt_row gt_left">NA</td>
<td headers="con_mrs" class="gt_row gt_center">NA</td>
<td headers="con_calc" class="gt_row gt_center">NA</td>
<td headers="consensus_complete" class="gt_row gt_left">NA</td>
<td headers="event_datetime" class="gt_row gt_right">2024-01-18 12:50:19</td>
<td headers="event_age" class="gt_row gt_right">118</td>
<td headers="event_type" class="gt_row gt_left">AIS</td>
<td headers="new_event_complete" class="gt_row gt_left">Complete</td>
</tr>
<tr>
<td headers="record_id" class="gt_row gt_right">4</td>
<td headers="redcap_event_name" class="gt_row gt_left">follow2</td>
<td headers="redcap_repeat_instrument" class="gt_row gt_left">New Event (?)</td>
<td headers="redcap_repeat_instance" class="gt_row gt_right">2</td>
<td headers="cpr" class="gt_row gt_left">NA</td>
<td headers="inclusion" class="gt_row gt_right">NA</td>
<td headers="inclusion_time" class="gt_row gt_center">NA</td>
<td headers="dob" class="gt_row gt_right">NA</td>
<td headers="age" class="gt_row gt_right">NA</td>
<td headers="age_integer" class="gt_row gt_right">NA</td>
<td headers="sex" class="gt_row gt_left">NA</td>
<td headers="cohabitation" class="gt_row gt_left">NA</td>
<td headers="hypertension" class="gt_row gt_left">NA</td>
<td headers="diabetes" class="gt_row gt_left">NA</td>
<td headers="region" class="gt_row gt_left">NA</td>
<td headers="baseline_data_start_complete" class="gt_row gt_left">NA</td>
<td headers="mrs_assessed" class="gt_row gt_left">NA</td>
<td headers="mrs_date" class="gt_row gt_right">NA</td>
<td headers="mrs_score" class="gt_row gt_right">NA</td>
<td headers="mrs_complete" class="gt_row gt_left">NA</td>
<td headers="con_mrs" class="gt_row gt_center">NA</td>
<td headers="con_calc" class="gt_row gt_center">NA</td>
<td headers="consensus_complete" class="gt_row gt_left">NA</td>
<td headers="event_datetime" class="gt_row gt_right">2024-01-18 12:50:22</td>
<td headers="event_age" class="gt_row gt_right">118</td>
<td headers="event_type" class="gt_row gt_left">ICH</td>
<td headers="new_event_complete" class="gt_row gt_left">Incomplete</td>
</tr>
<tr>
<td headers="record_id" class="gt_row gt_right">4</td>
<td headers="redcap_event_name" class="gt_row gt_left">follow2</td>
<td headers="redcap_repeat_instrument" class="gt_row gt_left">New Event (?)</td>
<td headers="redcap_repeat_instance" class="gt_row gt_right">3</td>
<td headers="cpr" class="gt_row gt_left">NA</td>
<td headers="inclusion" class="gt_row gt_right">NA</td>
<td headers="inclusion_time" class="gt_row gt_center">NA</td>
<td headers="dob" class="gt_row gt_right">NA</td>
<td headers="age" class="gt_row gt_right">NA</td>
<td headers="age_integer" class="gt_row gt_right">NA</td>
<td headers="sex" class="gt_row gt_left">NA</td>
<td headers="cohabitation" class="gt_row gt_left">NA</td>
<td headers="hypertension" class="gt_row gt_left">NA</td>
<td headers="diabetes" class="gt_row gt_left">NA</td>
<td headers="region" class="gt_row gt_left">NA</td>
<td headers="baseline_data_start_complete" class="gt_row gt_left">NA</td>
<td headers="mrs_assessed" class="gt_row gt_left">NA</td>
<td headers="mrs_date" class="gt_row gt_right">NA</td>
<td headers="mrs_score" class="gt_row gt_right">NA</td>
<td headers="mrs_complete" class="gt_row gt_left">NA</td>
<td headers="con_mrs" class="gt_row gt_center">NA</td>
<td headers="con_calc" class="gt_row gt_center">NA</td>
<td headers="consensus_complete" class="gt_row gt_left">NA</td>
<td headers="event_datetime" class="gt_row gt_right">2024-01-18 12:50:24</td>
<td headers="event_age" class="gt_row gt_right">118</td>
<td headers="event_type" class="gt_row gt_left">Unknown</td>
<td headers="new_event_complete" class="gt_row gt_left">Complete</td>
</tr>
<tr>
<td headers="record_id" class="gt_row gt_right">5</td>
<td headers="redcap_event_name" class="gt_row gt_left">inclusion</td>
<td headers="redcap_repeat_instrument" class="gt_row gt_left">NA</td>
<td headers="redcap_repeat_instance" class="gt_row gt_right">NA</td>
<td headers="cpr" class="gt_row gt_left">0201976043</td>
<td headers="inclusion" class="gt_row gt_right">2023-03-23</td>
<td headers="inclusion_time" class="gt_row gt_center">08:50:31</td>
<td headers="dob" class="gt_row gt_right">1897-01-02</td>
<td headers="age" class="gt_row gt_right">126.21751</td>
<td headers="age_integer" class="gt_row gt_right">126</td>
<td headers="sex" class="gt_row gt_left">male</td>
<td headers="cohabitation" class="gt_row gt_left">No</td>
<td headers="hypertension" class="gt_row gt_left">Yes</td>
<td headers="diabetes" class="gt_row gt_left">Yes</td>
<td headers="region" class="gt_row gt_left">East</td>
<td headers="baseline_data_start_complete" class="gt_row gt_left">Complete</td>
<td headers="mrs_assessed" class="gt_row gt_left">NA</td>
<td headers="mrs_date" class="gt_row gt_right">NA</td>
<td headers="mrs_score" class="gt_row gt_right">NA</td>
<td headers="mrs_complete" class="gt_row gt_left">Incomplete</td>
<td headers="con_mrs" class="gt_row gt_center">NA</td>
<td headers="con_calc" class="gt_row gt_center">NA</td>
<td headers="consensus_complete" class="gt_row gt_left">NA</td>
<td headers="event_datetime" class="gt_row gt_right">NA</td>
<td headers="event_age" class="gt_row gt_right">NA</td>
<td headers="event_type" class="gt_row gt_left">NA</td>
<td headers="new_event_complete" class="gt_row gt_left">NA</td>
</tr>
<tr>
<td headers="record_id" class="gt_row gt_right">5</td>
<td headers="redcap_event_name" class="gt_row gt_left">follow1</td>
<td headers="redcap_repeat_instrument" class="gt_row gt_left">NA</td>
<td headers="redcap_repeat_instance" class="gt_row gt_right">NA</td>
<td headers="cpr" class="gt_row gt_left">NA</td>
<td headers="inclusion" class="gt_row gt_right">NA</td>
<td headers="inclusion_time" class="gt_row gt_center">NA</td>
<td headers="dob" class="gt_row gt_right">NA</td>
<td headers="age" class="gt_row gt_right">NA</td>
<td headers="age_integer" class="gt_row gt_right">NA</td>
<td headers="sex" class="gt_row gt_left">NA</td>
<td headers="cohabitation" class="gt_row gt_left">NA</td>
<td headers="hypertension" class="gt_row gt_left">NA</td>
<td headers="diabetes" class="gt_row gt_left">NA</td>
<td headers="region" class="gt_row gt_left">NA</td>
<td headers="baseline_data_start_complete" class="gt_row gt_left">NA</td>
<td headers="mrs_assessed" class="gt_row gt_left">NA</td>
<td headers="mrs_date" class="gt_row gt_right">NA</td>
<td headers="mrs_score" class="gt_row gt_right">NA</td>
<td headers="mrs_complete" class="gt_row gt_left">Incomplete</td>
<td headers="con_mrs" class="gt_row gt_center">NA</td>
<td headers="con_calc" class="gt_row gt_center">NA</td>
<td headers="consensus_complete" class="gt_row gt_left">Incomplete</td>
<td headers="event_datetime" class="gt_row gt_right">NA</td>
<td headers="event_age" class="gt_row gt_right">NA</td>
<td headers="event_type" class="gt_row gt_left">NA</td>
<td headers="new_event_complete" class="gt_row gt_left">NA</td>
</tr>
<tr>
<td headers="record_id" class="gt_row gt_right">5</td>
<td headers="redcap_event_name" class="gt_row gt_left">follow1</td>
<td headers="redcap_repeat_instrument" class="gt_row gt_left">New Event (?)</td>
<td headers="redcap_repeat_instance" class="gt_row gt_right">1</td>
<td headers="cpr" class="gt_row gt_left">NA</td>
<td headers="inclusion" class="gt_row gt_right">NA</td>
<td headers="inclusion_time" class="gt_row gt_center">NA</td>
<td headers="dob" class="gt_row gt_right">NA</td>
<td headers="age" class="gt_row gt_right">NA</td>
<td headers="age_integer" class="gt_row gt_right">NA</td>
<td headers="sex" class="gt_row gt_left">NA</td>
<td headers="cohabitation" class="gt_row gt_left">NA</td>
<td headers="hypertension" class="gt_row gt_left">NA</td>
<td headers="diabetes" class="gt_row gt_left">NA</td>
<td headers="region" class="gt_row gt_left">NA</td>
<td headers="baseline_data_start_complete" class="gt_row gt_left">NA</td>
<td headers="mrs_assessed" class="gt_row gt_left">NA</td>
<td headers="mrs_date" class="gt_row gt_right">NA</td>
<td headers="mrs_score" class="gt_row gt_right">NA</td>
<td headers="mrs_complete" class="gt_row gt_left">NA</td>
<td headers="con_mrs" class="gt_row gt_center">NA</td>
<td headers="con_calc" class="gt_row gt_center">NA</td>
<td headers="consensus_complete" class="gt_row gt_left">NA</td>
<td headers="event_datetime" class="gt_row gt_right">2024-04-11 09:00:33</td>
<td headers="event_age" class="gt_row gt_right">127</td>
<td headers="event_type" class="gt_row gt_left">AIS</td>
<td headers="new_event_complete" class="gt_row gt_left">Complete</td>
</tr>
<tr>
<td headers="record_id" class="gt_row gt_right">5</td>
<td headers="redcap_event_name" class="gt_row gt_left">follow1</td>
<td headers="redcap_repeat_instrument" class="gt_row gt_left">New Event (?)</td>
<td headers="redcap_repeat_instance" class="gt_row gt_right">2</td>
<td headers="cpr" class="gt_row gt_left">NA</td>
<td headers="inclusion" class="gt_row gt_right">NA</td>
<td headers="inclusion_time" class="gt_row gt_center">NA</td>
<td headers="dob" class="gt_row gt_right">NA</td>
<td headers="age" class="gt_row gt_right">NA</td>
<td headers="age_integer" class="gt_row gt_right">NA</td>
<td headers="sex" class="gt_row gt_left">NA</td>
<td headers="cohabitation" class="gt_row gt_left">NA</td>
<td headers="hypertension" class="gt_row gt_left">NA</td>
<td headers="diabetes" class="gt_row gt_left">NA</td>
<td headers="region" class="gt_row gt_left">NA</td>
<td headers="baseline_data_start_complete" class="gt_row gt_left">NA</td>
<td headers="mrs_assessed" class="gt_row gt_left">NA</td>
<td headers="mrs_date" class="gt_row gt_right">NA</td>
<td headers="mrs_score" class="gt_row gt_right">NA</td>
<td headers="mrs_complete" class="gt_row gt_left">NA</td>
<td headers="con_mrs" class="gt_row gt_center">NA</td>
<td headers="con_calc" class="gt_row gt_center">NA</td>
<td headers="consensus_complete" class="gt_row gt_left">NA</td>
<td headers="event_datetime" class="gt_row gt_right">2024-04-11 09:00:41</td>
<td headers="event_age" class="gt_row gt_right">127</td>
<td headers="event_type" class="gt_row gt_left">ICH</td>
<td headers="new_event_complete" class="gt_row gt_left">Complete</td>
</tr>
<tr>
<td headers="record_id" class="gt_row gt_right">6</td>
<td headers="redcap_event_name" class="gt_row gt_left">inclusion</td>
<td headers="redcap_repeat_instrument" class="gt_row gt_left">NA</td>
<td headers="redcap_repeat_instance" class="gt_row gt_right">NA</td>
<td headers="cpr" class="gt_row gt_left">1202320122</td>
<td headers="inclusion" class="gt_row gt_right">2024-01-25</td>
<td headers="inclusion_time" class="gt_row gt_center">08:49:28</td>
<td headers="dob" class="gt_row gt_right">1932-02-12</td>
<td headers="age" class="gt_row gt_right">91.95261</td>
<td headers="age_integer" class="gt_row gt_right">91</td>
<td headers="sex" class="gt_row gt_left">female</td>
<td headers="cohabitation" class="gt_row gt_left">No</td>
<td headers="hypertension" class="gt_row gt_left">Yes</td>
<td headers="diabetes" class="gt_row gt_left">No</td>
<td headers="region" class="gt_row gt_left">East</td>
<td headers="baseline_data_start_complete" class="gt_row gt_left">Complete</td>
<td headers="mrs_assessed" class="gt_row gt_left">NA</td>
<td headers="mrs_date" class="gt_row gt_right">NA</td>
<td headers="mrs_score" class="gt_row gt_right">NA</td>
<td headers="mrs_complete" class="gt_row gt_left">Incomplete</td>
<td headers="con_mrs" class="gt_row gt_center">NA</td>
<td headers="con_calc" class="gt_row gt_center">NA</td>
<td headers="consensus_complete" class="gt_row gt_left">NA</td>
<td headers="event_datetime" class="gt_row gt_right">NA</td>
<td headers="event_age" class="gt_row gt_right">NA</td>
<td headers="event_type" class="gt_row gt_left">NA</td>
<td headers="new_event_complete" class="gt_row gt_left">NA</td>
</tr>
</tbody>
</table>
</div>
<div class="sourceCode" id="cb5"><pre class="downlit sourceCode r">
<code class="sourceCode R"><span><span class="va">redcapcast_meta</span> <span class="op">|&gt;</span> <span class="fu">gt</span><span class="fu">::</span><span class="fu"><a href="https://gt.rstudio.com/reference/gt.html" class="external-link">gt</a></span><span class="op">(</span><span class="op">)</span></span></code></pre></div>
<div id="eexombwkke" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#eexombwkke table {
font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
#eexombwkke thead, #eexombwkke tbody, #eexombwkke tfoot, #eexombwkke tr, #eexombwkke td, #eexombwkke th {
border-style: none;
}
#eexombwkke p {
margin: 0;
padding: 0;
}
#eexombwkke .gt_table {
display: table;
border-collapse: collapse;
line-height: normal;
margin-left: auto;
margin-right: auto;
color: #333333;
font-size: 16px;
font-weight: normal;
font-style: normal;
background-color: #FFFFFF;
width: auto;
border-top-style: solid;
border-top-width: 2px;
border-top-color: #A8A8A8;
border-right-style: none;
border-right-width: 2px;
border-right-color: #D3D3D3;
border-bottom-style: solid;
border-bottom-width: 2px;
border-bottom-color: #A8A8A8;
border-left-style: none;
border-left-width: 2px;
border-left-color: #D3D3D3;
}
#eexombwkke .gt_caption {
padding-top: 4px;
padding-bottom: 4px;
}
#eexombwkke .gt_title {
color: #333333;
font-size: 125%;
font-weight: initial;
padding-top: 4px;
padding-bottom: 4px;
padding-left: 5px;
padding-right: 5px;
border-bottom-color: #FFFFFF;
border-bottom-width: 0;
}
#eexombwkke .gt_subtitle {
color: #333333;
font-size: 85%;
font-weight: initial;
padding-top: 3px;
padding-bottom: 5px;
padding-left: 5px;
padding-right: 5px;
border-top-color: #FFFFFF;
border-top-width: 0;
}
#eexombwkke .gt_heading {
background-color: #FFFFFF;
text-align: center;
border-bottom-color: #FFFFFF;
border-left-style: none;
border-left-width: 1px;
border-left-color: #D3D3D3;
border-right-style: none;
border-right-width: 1px;
border-right-color: #D3D3D3;
}
#eexombwkke .gt_bottom_border {
border-bottom-style: solid;
border-bottom-width: 2px;
border-bottom-color: #D3D3D3;
}
#eexombwkke .gt_col_headings {
border-top-style: solid;
border-top-width: 2px;
border-top-color: #D3D3D3;
border-bottom-style: solid;
border-bottom-width: 2px;
border-bottom-color: #D3D3D3;
border-left-style: none;
border-left-width: 1px;
border-left-color: #D3D3D3;
border-right-style: none;
border-right-width: 1px;
border-right-color: #D3D3D3;
}
#eexombwkke .gt_col_heading {
color: #333333;
background-color: #FFFFFF;
font-size: 100%;
font-weight: normal;
text-transform: inherit;
border-left-style: none;
border-left-width: 1px;
border-left-color: #D3D3D3;
border-right-style: none;
border-right-width: 1px;
border-right-color: #D3D3D3;
vertical-align: bottom;
padding-top: 5px;
padding-bottom: 6px;
padding-left: 5px;
padding-right: 5px;
overflow-x: hidden;
}
#eexombwkke .gt_column_spanner_outer {
color: #333333;
background-color: #FFFFFF;
font-size: 100%;
font-weight: normal;
text-transform: inherit;
padding-top: 0;
padding-bottom: 0;
padding-left: 4px;
padding-right: 4px;
}
#eexombwkke .gt_column_spanner_outer:first-child {
padding-left: 0;
}
#eexombwkke .gt_column_spanner_outer:last-child {
padding-right: 0;
}
#eexombwkke .gt_column_spanner {
border-bottom-style: solid;
border-bottom-width: 2px;
border-bottom-color: #D3D3D3;
vertical-align: bottom;
padding-top: 5px;
padding-bottom: 5px;
overflow-x: hidden;
display: inline-block;
width: 100%;
}
#eexombwkke .gt_spanner_row {
border-bottom-style: hidden;
}
#eexombwkke .gt_group_heading {
padding-top: 8px;
padding-bottom: 8px;
padding-left: 5px;
padding-right: 5px;
color: #333333;
background-color: #FFFFFF;
font-size: 100%;
font-weight: initial;
text-transform: inherit;
border-top-style: solid;
border-top-width: 2px;
border-top-color: #D3D3D3;
border-bottom-style: solid;
border-bottom-width: 2px;
border-bottom-color: #D3D3D3;
border-left-style: none;
border-left-width: 1px;
border-left-color: #D3D3D3;
border-right-style: none;
border-right-width: 1px;
border-right-color: #D3D3D3;
vertical-align: middle;
text-align: left;
}
#eexombwkke .gt_empty_group_heading {
padding: 0.5px;
color: #333333;
background-color: #FFFFFF;
font-size: 100%;
font-weight: initial;
border-top-style: solid;
border-top-width: 2px;
border-top-color: #D3D3D3;
border-bottom-style: solid;
border-bottom-width: 2px;
border-bottom-color: #D3D3D3;
vertical-align: middle;
}
#eexombwkke .gt_from_md > :first-child {
margin-top: 0;
}
#eexombwkke .gt_from_md > :last-child {
margin-bottom: 0;
}
#eexombwkke .gt_row {
padding-top: 8px;
padding-bottom: 8px;
padding-left: 5px;
padding-right: 5px;
margin: 10px;
border-top-style: solid;
border-top-width: 1px;
border-top-color: #D3D3D3;
border-left-style: none;
border-left-width: 1px;
border-left-color: #D3D3D3;
border-right-style: none;
border-right-width: 1px;
border-right-color: #D3D3D3;
vertical-align: middle;
overflow-x: hidden;
}
#eexombwkke .gt_stub {
color: #333333;
background-color: #FFFFFF;
font-size: 100%;
font-weight: initial;
text-transform: inherit;
border-right-style: solid;
border-right-width: 2px;
border-right-color: #D3D3D3;
padding-left: 5px;
padding-right: 5px;
}
#eexombwkke .gt_stub_row_group {
color: #333333;
background-color: #FFFFFF;
font-size: 100%;
font-weight: initial;
text-transform: inherit;
border-right-style: solid;
border-right-width: 2px;
border-right-color: #D3D3D3;
padding-left: 5px;
padding-right: 5px;
vertical-align: top;
}
#eexombwkke .gt_row_group_first td {
border-top-width: 2px;
}
#eexombwkke .gt_row_group_first th {
border-top-width: 2px;
}
#eexombwkke .gt_summary_row {
color: #333333;
background-color: #FFFFFF;
text-transform: inherit;
padding-top: 8px;
padding-bottom: 8px;
padding-left: 5px;
padding-right: 5px;
}
#eexombwkke .gt_first_summary_row {
border-top-style: solid;
border-top-color: #D3D3D3;
}
#eexombwkke .gt_first_summary_row.thick {
border-top-width: 2px;
}
#eexombwkke .gt_last_summary_row {
padding-top: 8px;
padding-bottom: 8px;
padding-left: 5px;
padding-right: 5px;
border-bottom-style: solid;
border-bottom-width: 2px;
border-bottom-color: #D3D3D3;
}
#eexombwkke .gt_grand_summary_row {
color: #333333;
background-color: #FFFFFF;
text-transform: inherit;
padding-top: 8px;
padding-bottom: 8px;
padding-left: 5px;
padding-right: 5px;
}
#eexombwkke .gt_first_grand_summary_row {
padding-top: 8px;
padding-bottom: 8px;
padding-left: 5px;
padding-right: 5px;
border-top-style: double;
border-top-width: 6px;
border-top-color: #D3D3D3;
}
#eexombwkke .gt_last_grand_summary_row_top {
padding-top: 8px;
padding-bottom: 8px;
padding-left: 5px;
padding-right: 5px;
border-bottom-style: double;
border-bottom-width: 6px;
border-bottom-color: #D3D3D3;
}
#eexombwkke .gt_striped {
background-color: rgba(128, 128, 128, 0.05);
}
#eexombwkke .gt_table_body {
border-top-style: solid;
border-top-width: 2px;
border-top-color: #D3D3D3;
border-bottom-style: solid;
border-bottom-width: 2px;
border-bottom-color: #D3D3D3;
}
#eexombwkke .gt_footnotes {
color: #333333;
background-color: #FFFFFF;
border-bottom-style: none;
border-bottom-width: 2px;
border-bottom-color: #D3D3D3;
border-left-style: none;
border-left-width: 2px;
border-left-color: #D3D3D3;
border-right-style: none;
border-right-width: 2px;
border-right-color: #D3D3D3;
}
#eexombwkke .gt_footnote {
margin: 0px;
font-size: 90%;
padding-top: 4px;
padding-bottom: 4px;
padding-left: 5px;
padding-right: 5px;
}
#eexombwkke .gt_sourcenotes {
color: #333333;
background-color: #FFFFFF;
border-bottom-style: none;
border-bottom-width: 2px;
border-bottom-color: #D3D3D3;
border-left-style: none;
border-left-width: 2px;
border-left-color: #D3D3D3;
border-right-style: none;
border-right-width: 2px;
border-right-color: #D3D3D3;
}
#eexombwkke .gt_sourcenote {
font-size: 90%;
padding-top: 4px;
padding-bottom: 4px;
padding-left: 5px;
padding-right: 5px;
}
#eexombwkke .gt_left {
text-align: left;
}
#eexombwkke .gt_center {
text-align: center;
}
#eexombwkke .gt_right {
text-align: right;
font-variant-numeric: tabular-nums;
}
#eexombwkke .gt_font_normal {
font-weight: normal;
}
#eexombwkke .gt_font_bold {
font-weight: bold;
}
#eexombwkke .gt_font_italic {
font-style: italic;
}
#eexombwkke .gt_super {
font-size: 65%;
}
#eexombwkke .gt_footnote_marks {
font-size: 75%;
vertical-align: 0.4em;
position: initial;
}
#eexombwkke .gt_asterisk {
font-size: 100%;
vertical-align: 0;
}
#eexombwkke .gt_indent_1 {
text-indent: 5px;
}
#eexombwkke .gt_indent_2 {
text-indent: 10px;
}
#eexombwkke .gt_indent_3 {
text-indent: 15px;
}
#eexombwkke .gt_indent_4 {
text-indent: 20px;
}
#eexombwkke .gt_indent_5 {
text-indent: 25px;
}
#eexombwkke .katex-display {
display: inline-flex !important;
margin-bottom: 0.75em !important;
}
#eexombwkke div.Reactable > div.rt-table > div.rt-thead > div.rt-tr.rt-tr-group-header > div.rt-th-group:after {
height: 0px !important;
}
</style>
<table class="table gt_table" data-quarto-disable-processing="false" data-quarto-bootstrap="false">
<thead><tr class="gt_col_headings">
<th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" scope="col" id="field_name">field_name</th>
<th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" scope="col" id="form_name">form_name</th>
<th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" scope="col" id="section_header">section_header</th>
<th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" scope="col" id="field_type">field_type</th>
<th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" scope="col" id="field_label">field_label</th>
<th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" scope="col" id="select_choices_or_calculations">select_choices_or_calculations</th>
<th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" scope="col" id="field_note">field_note</th>
<th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" scope="col" id="text_validation_type_or_show_slider_number">text_validation_type_or_show_slider_number</th>
<th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" scope="col" id="text_validation_min">text_validation_min</th>
<th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" scope="col" id="text_validation_max">text_validation_max</th>
<th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" scope="col" id="identifier">identifier</th>
<th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" scope="col" id="branching_logic">branching_logic</th>
<th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" scope="col" id="required_field">required_field</th>
<th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" scope="col" id="custom_alignment">custom_alignment</th>
<th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" scope="col" id="question_number">question_number</th>
<th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" scope="col" id="matrix_group_name">matrix_group_name</th>
<th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" scope="col" id="matrix_ranking">matrix_ranking</th>
<th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" scope="col" id="field_annotation">field_annotation</th>
</tr></thead>
<tbody class="gt_table_body">
<tr>
<td headers="field_name" class="gt_row gt_left">record_id</td>
<td headers="form_name" class="gt_row gt_left">baseline_data_start</td>
<td headers="section_header" class="gt_row gt_left">NA</td>
<td headers="field_type" class="gt_row gt_left">text</td>
<td headers="field_label" class="gt_row gt_left">ID</td>
<td headers="select_choices_or_calculations" class="gt_row gt_left">NA</td>
<td headers="field_note" class="gt_row gt_left">NA</td>
<td headers="text_validation_type_or_show_slider_number" class="gt_row gt_left">NA</td>
<td headers="text_validation_min" class="gt_row gt_left">NA</td>
<td headers="text_validation_max" class="gt_row gt_left">NA</td>
<td headers="identifier" class="gt_row gt_left">NA</td>
<td headers="branching_logic" class="gt_row gt_left">NA</td>
<td headers="required_field" class="gt_row gt_left">NA</td>
<td headers="custom_alignment" class="gt_row gt_left">NA</td>
<td headers="question_number" class="gt_row gt_left">NA</td>
<td headers="matrix_group_name" class="gt_row gt_left">NA</td>
<td headers="matrix_ranking" class="gt_row gt_left">NA</td>
<td headers="field_annotation" class="gt_row gt_left">NA</td>
</tr>
<tr>
<td headers="field_name" class="gt_row gt_left">cpr</td>
<td headers="form_name" class="gt_row gt_left">baseline_data_start</td>
<td headers="section_header" class="gt_row gt_left">NA</td>
<td headers="field_type" class="gt_row gt_left">text</td>
<td headers="field_label" class="gt_row gt_left">CPR (Danish civil registration number)</td>
<td headers="select_choices_or_calculations" class="gt_row gt_left">NA</td>
<td headers="field_note" class="gt_row gt_left">ddmmyyxxxx</td>
<td headers="text_validation_type_or_show_slider_number" class="gt_row gt_left">NA</td>
<td headers="text_validation_min" class="gt_row gt_left">NA</td>
<td headers="text_validation_max" class="gt_row gt_left">NA</td>
<td headers="identifier" class="gt_row gt_left">y</td>
<td headers="branching_logic" class="gt_row gt_left">NA</td>
<td headers="required_field" class="gt_row gt_left">y</td>
<td headers="custom_alignment" class="gt_row gt_left">NA</td>
<td headers="question_number" class="gt_row gt_left">NA</td>
<td headers="matrix_group_name" class="gt_row gt_left">NA</td>
<td headers="matrix_ranking" class="gt_row gt_left">NA</td>
<td headers="field_annotation" class="gt_row gt_left">NA</td>
</tr>
<tr>
<td headers="field_name" class="gt_row gt_left">inclusion</td>
<td headers="form_name" class="gt_row gt_left">baseline_data_start</td>
<td headers="section_header" class="gt_row gt_left">NA</td>
<td headers="field_type" class="gt_row gt_left">text</td>
<td headers="field_label" class="gt_row gt_left">Inclusion date</td>
<td headers="select_choices_or_calculations" class="gt_row gt_left">NA</td>
<td headers="field_note" class="gt_row gt_left">NA</td>
<td headers="text_validation_type_or_show_slider_number" class="gt_row gt_left">date_ymd</td>
<td headers="text_validation_min" class="gt_row gt_left">NA</td>
<td headers="text_validation_max" class="gt_row gt_left">NA</td>
<td headers="identifier" class="gt_row gt_left">NA</td>
<td headers="branching_logic" class="gt_row gt_left">NA</td>
<td headers="required_field" class="gt_row gt_left">NA</td>
<td headers="custom_alignment" class="gt_row gt_left">NA</td>
<td headers="question_number" class="gt_row gt_left">NA</td>
<td headers="matrix_group_name" class="gt_row gt_left">NA</td>
<td headers="matrix_ranking" class="gt_row gt_left">NA</td>
<td headers="field_annotation" class="gt_row gt_left">NA</td>
</tr>
<tr>
<td headers="field_name" class="gt_row gt_left">inclusion_time</td>
<td headers="form_name" class="gt_row gt_left">baseline_data_start</td>
<td headers="section_header" class="gt_row gt_left">NA</td>
<td headers="field_type" class="gt_row gt_left">text</td>
<td headers="field_label" class="gt_row gt_left">Inclusion time</td>
<td headers="select_choices_or_calculations" class="gt_row gt_left">NA</td>
<td headers="field_note" class="gt_row gt_left">NA</td>
<td headers="text_validation_type_or_show_slider_number" class="gt_row gt_left">time_hh_mm_ss</td>
<td headers="text_validation_min" class="gt_row gt_left">NA</td>
<td headers="text_validation_max" class="gt_row gt_left">NA</td>
<td headers="identifier" class="gt_row gt_left">NA</td>
<td headers="branching_logic" class="gt_row gt_left">NA</td>
<td headers="required_field" class="gt_row gt_left">NA</td>
<td headers="custom_alignment" class="gt_row gt_left">NA</td>
<td headers="question_number" class="gt_row gt_left">NA</td>
<td headers="matrix_group_name" class="gt_row gt_left">NA</td>
<td headers="matrix_ranking" class="gt_row gt_left">NA</td>
<td headers="field_annotation" class="gt_row gt_left">NA</td>
</tr>
<tr>
<td headers="field_name" class="gt_row gt_left">dob</td>
<td headers="form_name" class="gt_row gt_left">baseline_data_start</td>
<td headers="section_header" class="gt_row gt_left">NA</td>
<td headers="field_type" class="gt_row gt_left">text</td>
<td headers="field_label" class="gt_row gt_left">Date of birth (From CPR)</td>
<td headers="select_choices_or_calculations" class="gt_row gt_left">NA</td>
<td headers="field_note" class="gt_row gt_left">NA</td>
<td headers="text_validation_type_or_show_slider_number" class="gt_row gt_left">date_ymd</td>
<td headers="text_validation_min" class="gt_row gt_left">NA</td>
<td headers="text_validation_max" class="gt_row gt_left">NA</td>
<td headers="identifier" class="gt_row gt_left">NA</td>
<td headers="branching_logic" class="gt_row gt_left">NA</td>
<td headers="required_field" class="gt_row gt_left">NA</td>
<td headers="custom_alignment" class="gt_row gt_left">NA</td>
<td headers="question_number" class="gt_row gt_left">NA</td>
<td headers="matrix_group_name" class="gt_row gt_left">NA</td>
<td headers="matrix_ranking" class="gt_row gt_left">NA</td>
<td headers="field_annotation" class="gt_row gt_left">@CALCTEXT(if([cpr]!="", concat(if(mid([cpr], 7, 1)&gt;=0 and mid([cpr], 7, 1)&lt;=3,19, if(mid([cpr], 5, 2)&gt;=0 and mid([cpr], 5, 2)&lt;=36 and mid([cpr], 7, 1)&gt;=4 and mid([cpr], 7, 1)&lt;=4,20, if(mid([cpr], 5, 2)&gt;=37 and mid([cpr], 5, 2)&lt;=99 and mid([cpr], 7, 1)&gt;=4 and mid([cpr], 7, 1)&lt;=4,19, if(mid([cpr], 5, 2)&gt;=0 and mid([cpr], 5, 2)&lt;=57 and mid([cpr], 7, 1)&gt;=5 and mid([cpr], 7, 1)&lt;=5,20, if(mid([cpr], 5, 2)&gt;=58 and mid([cpr], 5, 2)&lt;=99 and mid([cpr], 7, 1)&gt;=5 and mid([cpr], 7, 1)&lt;=5,18, if(mid([cpr], 5, 2)&gt;=0 and mid([cpr], 5, 2)&lt;=57 and mid([cpr], 7, 1)&gt;=6 and mid([cpr], 7, 1)&lt;=6,20, if(mid([cpr], 5, 2)&gt;=58 and mid([cpr], 5, 2)&lt;=99 and mid([cpr], 7, 1)&gt;=6 and mid([cpr], 7, 1)&lt;=6,18, if(mid([cpr], 5, 2)&gt;=0 and mid([cpr], 5, 2)&lt;=57 and mid([cpr], 7, 1)&gt;=7 and mid([cpr], 7, 1)&lt;=7,20, if(mid([cpr], 5, 2)&gt;=58 and mid([cpr], 5, 2)&lt;=99 and mid([cpr], 7, 1)&gt;=7 and mid([cpr], 7, 1)&lt;=7,18, if(mid([cpr], 5, 2)&gt;=0 and mid([cpr], 5, 2)&lt;=57 and mid([cpr], 7, 1)&gt;=8 and mid([cpr], 7, 1)&lt;=8,20, if(mid([cpr], 5, 2)&gt;=58 and mid([cpr], 5, 2)&lt;=99 and mid([cpr], 7, 1)&gt;=8 and mid([cpr], 7, 1)&lt;=8,18, if(mid([cpr], 5, 2)&gt;=0 and mid([cpr], 5, 2)&lt;=36 and mid([cpr], 7, 1)&gt;=9 and mid([cpr], 7, 1)&lt;=9,20, if(mid([cpr], 5, 2)&gt;=37 and mid([cpr], 5, 2)&lt;=99 and mid([cpr], 7, 1)&gt;=9 and mid([cpr], 7, 1)&lt;=9,19,17))))))))))))), mid([cpr], 5, 2), "-",mid([cpr],3, 2), "-", left([cpr], 2) ), ""))</td>
</tr>
<tr>
<td headers="field_name" class="gt_row gt_left">age</td>
<td headers="form_name" class="gt_row gt_left">baseline_data_start</td>
<td headers="section_header" class="gt_row gt_left">NA</td>
<td headers="field_type" class="gt_row gt_left">calc</td>
<td headers="field_label" class="gt_row gt_left">Age
Note: Apparently, the build in datediff() function does not handle counting whole years. This results in wrongly counting age higher around the date of birth.</td>
<td headers="select_choices_or_calculations" class="gt_row gt_left">if([cpr]!="" and [inclusion]!="", datediff([dob], [inclusion], 'y'), "")</td>
<td headers="field_note" class="gt_row gt_left">NA</td>
<td headers="text_validation_type_or_show_slider_number" class="gt_row gt_left">NA</td>
<td headers="text_validation_min" class="gt_row gt_left">NA</td>
<td headers="text_validation_max" class="gt_row gt_left">NA</td>
<td headers="identifier" class="gt_row gt_left">NA</td>
<td headers="branching_logic" class="gt_row gt_left">NA</td>
<td headers="required_field" class="gt_row gt_left">NA</td>
<td headers="custom_alignment" class="gt_row gt_left">NA</td>
<td headers="question_number" class="gt_row gt_left">NA</td>
<td headers="matrix_group_name" class="gt_row gt_left">NA</td>
<td headers="matrix_ranking" class="gt_row gt_left">NA</td>
<td headers="field_annotation" class="gt_row gt_left">NA</td>
</tr>
<tr>
<td headers="field_name" class="gt_row gt_left">age_integer</td>
<td headers="form_name" class="gt_row gt_left">baseline_data_start</td>
<td headers="section_header" class="gt_row gt_left">NA</td>
<td headers="field_type" class="gt_row gt_left">calc</td>
<td headers="field_label" class="gt_row gt_left">Age integer
Note: as opposed to the build in datediff() this handles counting years as integers very well. Calculate decimal years in statistical programming software. In R you can use with(ds, stRoke::age_calc(dob, inclusion)).</td>
<td headers="select_choices_or_calculations" class="gt_row gt_left">if([cpr]!="", left([inclusion], 4)-left([dob], 4) - if(mid([dob], 6, 2) &lt; mid([inclusion], 6, 2) or (mid([dob], 6, 2) = mid([inclusion], 6, 2) and mid([dob], 9, 2) &lt;= mid([inclusion], 9, 2)), 0, 1),"")</td>
<td headers="field_note" class="gt_row gt_left">NA</td>
<td headers="text_validation_type_or_show_slider_number" class="gt_row gt_left">NA</td>
<td headers="text_validation_min" class="gt_row gt_left">NA</td>
<td headers="text_validation_max" class="gt_row gt_left">NA</td>
<td headers="identifier" class="gt_row gt_left">NA</td>
<td headers="branching_logic" class="gt_row gt_left">NA</td>
<td headers="required_field" class="gt_row gt_left">NA</td>
<td headers="custom_alignment" class="gt_row gt_left">NA</td>
<td headers="question_number" class="gt_row gt_left">NA</td>
<td headers="matrix_group_name" class="gt_row gt_left">NA</td>
<td headers="matrix_ranking" class="gt_row gt_left">NA</td>
<td headers="field_annotation" class="gt_row gt_left">NA</td>
</tr>
<tr>
<td headers="field_name" class="gt_row gt_left">sex</td>
<td headers="form_name" class="gt_row gt_left">baseline_data_start</td>
<td headers="section_header" class="gt_row gt_left">NA</td>
<td headers="field_type" class="gt_row gt_left">text</td>
<td headers="field_label" class="gt_row gt_left">Legal sex</td>
<td headers="select_choices_or_calculations" class="gt_row gt_left">NA</td>
<td headers="field_note" class="gt_row gt_left">NA</td>
<td headers="text_validation_type_or_show_slider_number" class="gt_row gt_left">NA</td>
<td headers="text_validation_min" class="gt_row gt_left">NA</td>
<td headers="text_validation_max" class="gt_row gt_left">NA</td>
<td headers="identifier" class="gt_row gt_left">NA</td>
<td headers="branching_logic" class="gt_row gt_left">NA</td>
<td headers="required_field" class="gt_row gt_left">NA</td>
<td headers="custom_alignment" class="gt_row gt_left">NA</td>
<td headers="question_number" class="gt_row gt_left">NA</td>
<td headers="matrix_group_name" class="gt_row gt_left">NA</td>
<td headers="matrix_ranking" class="gt_row gt_left">NA</td>
<td headers="field_annotation" class="gt_row gt_left">@CALCTEXT(if([cpr]!="",if((right([cpr],1)=1 or right([cpr],1)=3 or right([cpr],1)=5 or right([cpr],1)=7 or right([cpr],1)=9),"male","female"),""))</td>
</tr>
<tr>
<td headers="field_name" class="gt_row gt_left">cohabitation</td>
<td headers="form_name" class="gt_row gt_left">baseline_data_start</td>
<td headers="section_header" class="gt_row gt_left">History and social</td>
<td headers="field_type" class="gt_row gt_left">radio</td>
<td headers="field_label" class="gt_row gt_left">Cohabitation</td>
<td headers="select_choices_or_calculations" class="gt_row gt_left">1, Yes | 2, No</td>
<td headers="field_note" class="gt_row gt_left">NA</td>
<td headers="text_validation_type_or_show_slider_number" class="gt_row gt_left">NA</td>
<td headers="text_validation_min" class="gt_row gt_left">NA</td>
<td headers="text_validation_max" class="gt_row gt_left">NA</td>
<td headers="identifier" class="gt_row gt_left">NA</td>
<td headers="branching_logic" class="gt_row gt_left">NA</td>
<td headers="required_field" class="gt_row gt_left">NA</td>
<td headers="custom_alignment" class="gt_row gt_left">NA</td>
<td headers="question_number" class="gt_row gt_left">NA</td>
<td headers="matrix_group_name" class="gt_row gt_left">NA</td>
<td headers="matrix_ranking" class="gt_row gt_left">NA</td>
<td headers="field_annotation" class="gt_row gt_left">NA</td>
</tr>
<tr>
<td headers="field_name" class="gt_row gt_left">hypertension</td>
<td headers="form_name" class="gt_row gt_left">baseline_data_start</td>
<td headers="section_header" class="gt_row gt_left">NA</td>
<td headers="field_type" class="gt_row gt_left">radio</td>
<td headers="field_label" class="gt_row gt_left">Hypertension</td>
<td headers="select_choices_or_calculations" class="gt_row gt_left">1, Yes | 2, No</td>
<td headers="field_note" class="gt_row gt_left">NA</td>
<td headers="text_validation_type_or_show_slider_number" class="gt_row gt_left">NA</td>
<td headers="text_validation_min" class="gt_row gt_left">NA</td>
<td headers="text_validation_max" class="gt_row gt_left">NA</td>
<td headers="identifier" class="gt_row gt_left">NA</td>
<td headers="branching_logic" class="gt_row gt_left">NA</td>
<td headers="required_field" class="gt_row gt_left">NA</td>
<td headers="custom_alignment" class="gt_row gt_left">NA</td>
<td headers="question_number" class="gt_row gt_left">NA</td>
<td headers="matrix_group_name" class="gt_row gt_left">NA</td>
<td headers="matrix_ranking" class="gt_row gt_left">NA</td>
<td headers="field_annotation" class="gt_row gt_left">NA</td>
</tr>
<tr>
<td headers="field_name" class="gt_row gt_left">diabetes</td>
<td headers="form_name" class="gt_row gt_left">baseline_data_start</td>
<td headers="section_header" class="gt_row gt_left">NA</td>
<td headers="field_type" class="gt_row gt_left">radio</td>
<td headers="field_label" class="gt_row gt_left">Diabetes</td>
<td headers="select_choices_or_calculations" class="gt_row gt_left">1, Yes | 2, No</td>
<td headers="field_note" class="gt_row gt_left">NA</td>
<td headers="text_validation_type_or_show_slider_number" class="gt_row gt_left">NA</td>
<td headers="text_validation_min" class="gt_row gt_left">NA</td>
<td headers="text_validation_max" class="gt_row gt_left">NA</td>
<td headers="identifier" class="gt_row gt_left">NA</td>
<td headers="branching_logic" class="gt_row gt_left">NA</td>
<td headers="required_field" class="gt_row gt_left">NA</td>
<td headers="custom_alignment" class="gt_row gt_left">NA</td>
<td headers="question_number" class="gt_row gt_left">NA</td>
<td headers="matrix_group_name" class="gt_row gt_left">NA</td>
<td headers="matrix_ranking" class="gt_row gt_left">NA</td>
<td headers="field_annotation" class="gt_row gt_left">NA</td>
</tr>
<tr>
<td headers="field_name" class="gt_row gt_left">region</td>
<td headers="form_name" class="gt_row gt_left">baseline_data_start</td>
<td headers="section_header" class="gt_row gt_left">Area</td>
<td headers="field_type" class="gt_row gt_left">dropdown</td>
<td headers="field_label" class="gt_row gt_left">Region</td>
<td headers="select_choices_or_calculations" class="gt_row gt_left">1, North | 2, East | 3, South | 4, West</td>
<td headers="field_note" class="gt_row gt_left">NA</td>
<td headers="text_validation_type_or_show_slider_number" class="gt_row gt_left">autocomplete</td>
<td headers="text_validation_min" class="gt_row gt_left">NA</td>
<td headers="text_validation_max" class="gt_row gt_left">NA</td>
<td headers="identifier" class="gt_row gt_left">NA</td>
<td headers="branching_logic" class="gt_row gt_left">NA</td>
<td headers="required_field" class="gt_row gt_left">NA</td>
<td headers="custom_alignment" class="gt_row gt_left">NA</td>
<td headers="question_number" class="gt_row gt_left">NA</td>
<td headers="matrix_group_name" class="gt_row gt_left">NA</td>
<td headers="matrix_ranking" class="gt_row gt_left">NA</td>
<td headers="field_annotation" class="gt_row gt_left">NA</td>
</tr>
<tr>
<td headers="field_name" class="gt_row gt_left">mrs_assessed</td>
<td headers="form_name" class="gt_row gt_left">mrs</td>
<td headers="section_header" class="gt_row gt_left">NA</td>
<td headers="field_type" class="gt_row gt_left">radio</td>
<td headers="field_label" class="gt_row gt_left">Assesed</td>
<td headers="select_choices_or_calculations" class="gt_row gt_left">1, Yes | 2, No</td>
<td headers="field_note" class="gt_row gt_left">NA</td>
<td headers="text_validation_type_or_show_slider_number" class="gt_row gt_left">NA</td>
<td headers="text_validation_min" class="gt_row gt_left">NA</td>
<td headers="text_validation_max" class="gt_row gt_left">NA</td>
<td headers="identifier" class="gt_row gt_left">NA</td>
<td headers="branching_logic" class="gt_row gt_left">NA</td>
<td headers="required_field" class="gt_row gt_left">NA</td>
<td headers="custom_alignment" class="gt_row gt_left">NA</td>
<td headers="question_number" class="gt_row gt_left">NA</td>
<td headers="matrix_group_name" class="gt_row gt_left">NA</td>
<td headers="matrix_ranking" class="gt_row gt_left">NA</td>
<td headers="field_annotation" class="gt_row gt_left">NA</td>
</tr>
<tr>
<td headers="field_name" class="gt_row gt_left">mrs_date</td>
<td headers="form_name" class="gt_row gt_left">mrs</td>
<td headers="section_header" class="gt_row gt_left">NA</td>
<td headers="field_type" class="gt_row gt_left">text</td>
<td headers="field_label" class="gt_row gt_left">Assessment date</td>
<td headers="select_choices_or_calculations" class="gt_row gt_left">NA</td>
<td headers="field_note" class="gt_row gt_left">NA</td>
<td headers="text_validation_type_or_show_slider_number" class="gt_row gt_left">date_dmy</td>
<td headers="text_validation_min" class="gt_row gt_left">NA</td>
<td headers="text_validation_max" class="gt_row gt_left">NA</td>
<td headers="identifier" class="gt_row gt_left">NA</td>
<td headers="branching_logic" class="gt_row gt_left">NA</td>
<td headers="required_field" class="gt_row gt_left">NA</td>
<td headers="custom_alignment" class="gt_row gt_left">NA</td>
<td headers="question_number" class="gt_row gt_left">NA</td>
<td headers="matrix_group_name" class="gt_row gt_left">NA</td>
<td headers="matrix_ranking" class="gt_row gt_left">NA</td>
<td headers="field_annotation" class="gt_row gt_left">NA</td>
</tr>
<tr>
<td headers="field_name" class="gt_row gt_left">mrs_score</td>
<td headers="form_name" class="gt_row gt_left">mrs</td>
<td headers="section_header" class="gt_row gt_left">NA</td>
<td headers="field_type" class="gt_row gt_left">radio</td>
<td headers="field_label" class="gt_row gt_left">mRS score</td>
<td headers="select_choices_or_calculations" class="gt_row gt_left">0, 0 | 1, 1 | 2, 2 | 3, 3 | 4, 4 | 5, 5</td>
<td headers="field_note" class="gt_row gt_left">NA</td>
<td headers="text_validation_type_or_show_slider_number" class="gt_row gt_left">NA</td>
<td headers="text_validation_min" class="gt_row gt_left">NA</td>
<td headers="text_validation_max" class="gt_row gt_left">NA</td>
<td headers="identifier" class="gt_row gt_left">NA</td>
<td headers="branching_logic" class="gt_row gt_left">NA</td>
<td headers="required_field" class="gt_row gt_left">NA</td>
<td headers="custom_alignment" class="gt_row gt_left">NA</td>
<td headers="question_number" class="gt_row gt_left">NA</td>
<td headers="matrix_group_name" class="gt_row gt_left">NA</td>
<td headers="matrix_ranking" class="gt_row gt_left">NA</td>
<td headers="field_annotation" class="gt_row gt_left">NA</td>
</tr>
<tr>
<td headers="field_name" class="gt_row gt_left">con_event_note</td>
<td headers="form_name" class="gt_row gt_left">consensus</td>
<td headers="section_header" class="gt_row gt_left">NA</td>
<td headers="field_type" class="gt_row gt_left">descriptive</td>
<td headers="field_label" class="gt_row gt_left">[follow1_arm_1][event_type][1] : [follow1_arm_1][event_type][2]</td>
<td headers="select_choices_or_calculations" class="gt_row gt_left">NA</td>
<td headers="field_note" class="gt_row gt_left">NA</td>
<td headers="text_validation_type_or_show_slider_number" class="gt_row gt_left">NA</td>
<td headers="text_validation_min" class="gt_row gt_left">NA</td>
<td headers="text_validation_max" class="gt_row gt_left">NA</td>
<td headers="identifier" class="gt_row gt_left">NA</td>
<td headers="branching_logic" class="gt_row gt_left">NA</td>
<td headers="required_field" class="gt_row gt_left">NA</td>
<td headers="custom_alignment" class="gt_row gt_left">NA</td>
<td headers="question_number" class="gt_row gt_left">NA</td>
<td headers="matrix_group_name" class="gt_row gt_left">NA</td>
<td headers="matrix_ranking" class="gt_row gt_left">NA</td>
<td headers="field_annotation" class="gt_row gt_left">NA</td>
</tr>
<tr>
<td headers="field_name" class="gt_row gt_left">con_mrs</td>
<td headers="form_name" class="gt_row gt_left">consensus</td>
<td headers="section_header" class="gt_row gt_left">NA</td>
<td headers="field_type" class="gt_row gt_left">text</td>
<td headers="field_label" class="gt_row gt_left">Same event type</td>
<td headers="select_choices_or_calculations" class="gt_row gt_left">NA</td>
<td headers="field_note" class="gt_row gt_left">NA</td>
<td headers="text_validation_type_or_show_slider_number" class="gt_row gt_left">NA</td>
<td headers="text_validation_min" class="gt_row gt_left">NA</td>
<td headers="text_validation_max" class="gt_row gt_left">NA</td>
<td headers="identifier" class="gt_row gt_left">NA</td>
<td headers="branching_logic" class="gt_row gt_left">NA</td>
<td headers="required_field" class="gt_row gt_left">NA</td>
<td headers="custom_alignment" class="gt_row gt_left">NA</td>
<td headers="question_number" class="gt_row gt_left">NA</td>
<td headers="matrix_group_name" class="gt_row gt_left">NA</td>
<td headers="matrix_ranking" class="gt_row gt_left">NA</td>
<td headers="field_annotation" class="gt_row gt_left">@IF('[follow1_arm_1][event_type][1]'='[follow1_arm_1][event_type][2]',@DEFAULT='pass',@DEFAULT="fail")</td>
</tr>
<tr>
<td headers="field_name" class="gt_row gt_left">con_calc</td>
<td headers="form_name" class="gt_row gt_left">consensus</td>
<td headers="section_header" class="gt_row gt_left">NA</td>
<td headers="field_type" class="gt_row gt_left">text</td>
<td headers="field_label" class="gt_row gt_left">calc</td>
<td headers="select_choices_or_calculations" class="gt_row gt_left">NA</td>
<td headers="field_note" class="gt_row gt_left">NA</td>
<td headers="text_validation_type_or_show_slider_number" class="gt_row gt_left">NA</td>
<td headers="text_validation_min" class="gt_row gt_left">NA</td>
<td headers="text_validation_max" class="gt_row gt_left">NA</td>
<td headers="identifier" class="gt_row gt_left">NA</td>
<td headers="branching_logic" class="gt_row gt_left">NA</td>
<td headers="required_field" class="gt_row gt_left">NA</td>
<td headers="custom_alignment" class="gt_row gt_left">NA</td>
<td headers="question_number" class="gt_row gt_left">NA</td>
<td headers="matrix_group_name" class="gt_row gt_left">NA</td>
<td headers="matrix_ranking" class="gt_row gt_left">NA</td>
<td headers="field_annotation" class="gt_row gt_left">@CALCTEXT(if([follow1_arm_1][event_type][1]=[follow1_arm_1][event_type][2],[follow1_arm_1][event_type][1],"fail"))</td>
</tr>
<tr>
<td headers="field_name" class="gt_row gt_left">event_datetime</td>
<td headers="form_name" class="gt_row gt_left">new_event</td>
<td headers="section_header" class="gt_row gt_left">NA</td>
<td headers="field_type" class="gt_row gt_left">text</td>
<td headers="field_label" class="gt_row gt_left">Time of event</td>
<td headers="select_choices_or_calculations" class="gt_row gt_left">NA</td>
<td headers="field_note" class="gt_row gt_left">NA</td>
<td headers="text_validation_type_or_show_slider_number" class="gt_row gt_left">datetime_seconds_ymd</td>
<td headers="text_validation_min" class="gt_row gt_left">NA</td>
<td headers="text_validation_max" class="gt_row gt_left">NA</td>
<td headers="identifier" class="gt_row gt_left">NA</td>
<td headers="branching_logic" class="gt_row gt_left">NA</td>
<td headers="required_field" class="gt_row gt_left">NA</td>
<td headers="custom_alignment" class="gt_row gt_left">NA</td>
<td headers="question_number" class="gt_row gt_left">NA</td>
<td headers="matrix_group_name" class="gt_row gt_left">NA</td>
<td headers="matrix_ranking" class="gt_row gt_left">NA</td>
<td headers="field_annotation" class="gt_row gt_left">NA</td>
</tr>
<tr>
<td headers="field_name" class="gt_row gt_left">event_age</td>
<td headers="form_name" class="gt_row gt_left">new_event</td>
<td headers="section_header" class="gt_row gt_left">NA</td>
<td headers="field_type" class="gt_row gt_left">calc</td>
<td headers="field_label" class="gt_row gt_left">Age at event</td>
<td headers="select_choices_or_calculations" class="gt_row gt_left">if([event_datetime]!="", left([event_datetime], 4)-left([inclusion_arm_1][dob], 4) - if(mid([inclusion_arm_1][dob], 6, 2) &lt; mid([event_datetime], 6, 2) or (mid([inclusion_arm_1][dob], 6, 2) = mid([event_datetime], 6, 2) and mid([inclusion_arm_1][dob], 9, 2) &lt;= mid([event_datetime], 9, 2)), 0, 1),"")</td>
<td headers="field_note" class="gt_row gt_left">NA</td>
<td headers="text_validation_type_or_show_slider_number" class="gt_row gt_left">NA</td>
<td headers="text_validation_min" class="gt_row gt_left">NA</td>
<td headers="text_validation_max" class="gt_row gt_left">NA</td>
<td headers="identifier" class="gt_row gt_left">NA</td>
<td headers="branching_logic" class="gt_row gt_left">NA</td>
<td headers="required_field" class="gt_row gt_left">NA</td>
<td headers="custom_alignment" class="gt_row gt_left">NA</td>
<td headers="question_number" class="gt_row gt_left">NA</td>
<td headers="matrix_group_name" class="gt_row gt_left">NA</td>
<td headers="matrix_ranking" class="gt_row gt_left">NA</td>
<td headers="field_annotation" class="gt_row gt_left">NA</td>
</tr>
<tr>
<td headers="field_name" class="gt_row gt_left">event_type</td>
<td headers="form_name" class="gt_row gt_left">new_event</td>
<td headers="section_header" class="gt_row gt_left">NA</td>
<td headers="field_type" class="gt_row gt_left">radio</td>
<td headers="field_label" class="gt_row gt_left">Neurovascular event</td>
<td headers="select_choices_or_calculations" class="gt_row gt_left">1, TIA | 2, AIS | 3, ICH | 4, SAH | 99, Unknown</td>
<td headers="field_note" class="gt_row gt_left">NA</td>
<td headers="text_validation_type_or_show_slider_number" class="gt_row gt_left">NA</td>
<td headers="text_validation_min" class="gt_row gt_left">NA</td>
<td headers="text_validation_max" class="gt_row gt_left">NA</td>
<td headers="identifier" class="gt_row gt_left">NA</td>
<td headers="branching_logic" class="gt_row gt_left">NA</td>
<td headers="required_field" class="gt_row gt_left">NA</td>
<td headers="custom_alignment" class="gt_row gt_left">NA</td>
<td headers="question_number" class="gt_row gt_left">NA</td>
<td headers="matrix_group_name" class="gt_row gt_left">NA</td>
<td headers="matrix_ranking" class="gt_row gt_left">NA</td>
<td headers="field_annotation" class="gt_row gt_left">NA</td>
</tr>
</tbody>
</table>
</div>
<p>To save the metadata as labels in the dataset, we can save field
labels and the choices from radio buttons and dropdown features:</p>
<div class="sourceCode" id="cb6"><pre class="downlit sourceCode r">
<code class="sourceCode R"><span><span class="va">labelled_data</span> <span class="op">&lt;-</span></span>
<span> <span class="fu"><a href="../reference/apply_field_label.html">apply_field_label</a></span><span class="op">(</span></span>
<span> data <span class="op">=</span> <span class="va">redcapcast_data</span>,</span>
<span> meta <span class="op">=</span> <span class="va">redcapcast_meta</span></span>
<span> <span class="op">)</span> <span class="op">|&gt;</span></span>
<span> <span class="fu"><a href="../reference/apply_factor_labels.html">apply_factor_labels</a></span><span class="op">(</span>meta <span class="op">=</span> <span class="va">redcapcast_meta</span><span class="op">)</span></span></code></pre></div>
<p>The <code>REDCap_split</code> function splits the data set into a
list of data.frames.</p>
<div class="sourceCode" id="cb7"><pre class="downlit sourceCode r">
<code class="sourceCode R"><span><span class="va">list</span> <span class="op">&lt;-</span></span>
<span> <span class="fu"><a href="../reference/REDCap_split.html">REDCap_split</a></span><span class="op">(</span></span>
<span> records <span class="op">=</span> <span class="va">labelled_data</span>,</span>
<span> metadata <span class="op">=</span> <span class="va">redcapcast_meta</span>,</span>
<span> forms <span class="op">=</span> <span class="st">"all"</span></span>
<span> <span class="op">)</span> <span class="op">|&gt;</span></span>
<span> <span class="co"># Next steps cleans up and removes generic columns</span></span>
<span> <span class="fu"><a href="../reference/sanitize_split.html">sanitize_split</a></span><span class="op">(</span><span class="op">)</span></span>
<span><span class="fu"><a href="https://rdrr.io/r/utils/str.html" class="external-link">str</a></span><span class="op">(</span><span class="va">list</span><span class="op">)</span></span>
<span><span class="co">#&gt; List of 3</span></span>
<span><span class="co">#&gt; $ baseline_data_start: tibble [6 × 14] (S3: tbl_df/tbl/data.frame)</span></span>
<span><span class="co">#&gt; ..$ record_id : num [1:6] 1 2 3 4 5 6</span></span>
<span><span class="co">#&gt; .. ..- attr(*, "label")= chr "ID"</span></span>
<span><span class="co">#&gt; ..$ redcap_event_name : chr [1:6] "inclusion" "inclusion" "inclusion" "inclusion" ...</span></span>
<span><span class="co">#&gt; ..$ cpr : chr [1:6] "1203401OB4" "0102342303" "2301569823" "0204051342" ...</span></span>
<span><span class="co">#&gt; .. ..- attr(*, "label")= chr "CPR (Danish civil registration number)"</span></span>
<span><span class="co">#&gt; ..$ inclusion : Date[1:6], format: "2023-03-13" "2023-03-01" ...</span></span>
<span><span class="co">#&gt; ..$ inclusion_time : 'hms' num [1:6] 12:38:49 10:38:57 12:01:07 20:39:19 ...</span></span>
<span><span class="co">#&gt; .. ..- attr(*, "units")= chr "secs"</span></span>
<span><span class="co">#&gt; ..$ dob : Date[1:6], format: "1940-03-12" "1934-02-01" ...</span></span>
<span><span class="co">#&gt; ..$ age : num [1:6] 83 89.1 66.1 117.9 126.2 ...</span></span>
<span><span class="co">#&gt; .. ..- attr(*, "label")= chr "Age\r\nNote: Apparently, the build in datediff() function does not handle counting whole years. This results in"| __truncated__</span></span>
<span><span class="co">#&gt; ..$ age_integer : num [1:6] 83 89 66 117 126 91</span></span>
<span><span class="co">#&gt; .. ..- attr(*, "label")= chr "Age integer\r\nNote: as opposed to the build in datediff() this handles counting years as integers very well. C"| __truncated__</span></span>
<span><span class="co">#&gt; ..$ sex : chr [1:6] "female" "male" "male" "female" ...</span></span>
<span><span class="co">#&gt; .. ..- attr(*, "label")= chr "Legal sex"</span></span>
<span><span class="co">#&gt; ..$ cohabitation : 'labelled' chr [1:6] "Yes" "Yes" "No" NA ...</span></span>
<span><span class="co">#&gt; .. ..- attr(*, "label")= chr "Cohabitation"</span></span>
<span><span class="co">#&gt; .. ..- attr(*, "labels")= Named chr [1:2] "1" "2"</span></span>
<span><span class="co">#&gt; .. .. ..- attr(*, "names")= chr [1:2] "Yes" "No"</span></span>
<span><span class="co">#&gt; ..$ hypertension : 'labelled' chr [1:6] "No" "No" "Yes" NA ...</span></span>
<span><span class="co">#&gt; .. ..- attr(*, "label")= chr "Hypertension"</span></span>
<span><span class="co">#&gt; .. ..- attr(*, "labels")= Named chr [1:2] "1" "2"</span></span>
<span><span class="co">#&gt; .. .. ..- attr(*, "names")= chr [1:2] "Yes" "No"</span></span>
<span><span class="co">#&gt; ..$ diabetes : 'labelled' chr [1:6] "Yes" "No" "Yes" NA ...</span></span>
<span><span class="co">#&gt; .. ..- attr(*, "label")= chr "Diabetes"</span></span>
<span><span class="co">#&gt; .. ..- attr(*, "labels")= Named chr [1:2] "1" "2"</span></span>
<span><span class="co">#&gt; .. .. ..- attr(*, "names")= chr [1:2] "Yes" "No"</span></span>
<span><span class="co">#&gt; ..$ region : 'labelled' chr [1:6] "East" "South" "North" NA ...</span></span>
<span><span class="co">#&gt; .. ..- attr(*, "label")= chr "Region"</span></span>
<span><span class="co">#&gt; .. ..- attr(*, "labels")= Named chr [1:4] "1" "2" "3" "4"</span></span>
<span><span class="co">#&gt; .. .. ..- attr(*, "names")= chr [1:4] "North" "East" "South" "West"</span></span>
<span><span class="co">#&gt; ..$ baseline_data_start_complete: chr [1:6] "Incomplete" "Incomplete" "Incomplete" "Incomplete" ...</span></span>
<span><span class="co">#&gt; $ mrs : tibble [5 × 6] (S3: tbl_df/tbl/data.frame)</span></span>
<span><span class="co">#&gt; ..$ record_id : num [1:5] 1 2 2 3 3</span></span>
<span><span class="co">#&gt; .. ..- attr(*, "label")= chr "ID"</span></span>
<span><span class="co">#&gt; ..$ redcap_event_name: chr [1:5] "inclusion" "inclusion" "follow1" "follow1" ...</span></span>
<span><span class="co">#&gt; ..$ mrs_assessed : 'labelled' chr [1:5] "Yes" "Yes" "Yes" "Yes" ...</span></span>
<span><span class="co">#&gt; .. ..- attr(*, "label")= chr "Assesed"</span></span>
<span><span class="co">#&gt; .. ..- attr(*, "labels")= Named chr [1:2] "1" "2"</span></span>
<span><span class="co">#&gt; .. .. ..- attr(*, "names")= chr [1:2] "Yes" "No"</span></span>
<span><span class="co">#&gt; ..$ mrs_date : Date[1:5], format: "2023-03-13" "2023-03-07" ...</span></span>
<span><span class="co">#&gt; ..$ mrs_score : 'labelled' num [1:5] 1 1 3 2 1</span></span>
<span><span class="co">#&gt; .. ..- attr(*, "label")= chr "mRS score"</span></span>
<span><span class="co">#&gt; .. ..- attr(*, "labels")= Named chr [1:6] "0" "1" "2" "3" ...</span></span>
<span><span class="co">#&gt; .. .. ..- attr(*, "names")= chr [1:6] "0" "1" "2" "3" ...</span></span>
<span><span class="co">#&gt; ..$ mrs_complete : chr [1:5] "Incomplete" "Incomplete" "Incomplete" "Incomplete" ...</span></span>
<span><span class="co">#&gt; $ new_event : tibble [13 × 8] (S3: tbl_df/tbl/data.frame)</span></span>
<span><span class="co">#&gt; ..$ record_id : num [1:13] 2 3 3 3 3 3 4 4 4 4 ...</span></span>
<span><span class="co">#&gt; .. ..- attr(*, "label")= chr "ID"</span></span>
<span><span class="co">#&gt; ..$ redcap_event_name : chr [1:13] "follow1" "follow1" "follow1" "follow2" ...</span></span>
<span><span class="co">#&gt; ..$ redcap_repeat_instrument: chr [1:13] "new_event" "new_event" "new_event" "new_event" ...</span></span>
<span><span class="co">#&gt; ..$ redcap_repeat_instance : num [1:13] 1 1 2 1 2 3 1 2 1 2 ...</span></span>
<span><span class="co">#&gt; ..$ event_datetime : POSIXct[1:13], format: "2024-01-18 12:49:42" "2024-01-18 12:49:58" ...</span></span>
<span><span class="co">#&gt; ..$ event_age : num [1:13] NA NA NA NA NA NA 96 105 118 118 ...</span></span>
<span><span class="co">#&gt; .. ..- attr(*, "label")= chr "Age at event"</span></span>
<span><span class="co">#&gt; ..$ event_type : 'labelled' chr [1:13] "TIA" "AIS" "ICH" "ICH" ...</span></span>
<span><span class="co">#&gt; .. ..- attr(*, "label")= chr "Neurovascular event"</span></span>
<span><span class="co">#&gt; .. ..- attr(*, "labels")= Named chr [1:5] "1" "2" "3" "4" ...</span></span>
<span><span class="co">#&gt; .. .. ..- attr(*, "names")= chr [1:5] "TIA" "AIS" "ICH" "SAH" ...</span></span>
<span><span class="co">#&gt; ..$ new_event_complete : chr [1:13] "Incomplete" "Incomplete" "Incomplete" "Incomplete" ...</span></span></code></pre></div>
<p>The <code><a href="../reference/easy_redcap.html">easy_redcap()</a></code> will then (optionally) continue to
widen the data, by transforming the list of data.frames to a single
data.frame with one row for each subject/record_id (wide data
format):</p>
<div class="sourceCode" id="cb8"><pre class="downlit sourceCode r">
<code class="sourceCode R"><span><span class="va">wide_data</span> <span class="op">&lt;-</span> <span class="fu"><a href="../reference/redcap_wider.html">redcap_wider</a></span><span class="op">(</span><span class="va">list</span>,</span>
<span> event.glue <span class="op">=</span> <span class="st">"{.value}____{redcap_event_name}"</span>,</span>
<span> inst.glue <span class="op">=</span> <span class="st">"{.value}____{redcap_repeat_instance}"</span></span>
<span><span class="op">)</span></span>
<span><span class="co">#&gt; Joining with `by = join_by(record_id)`</span></span>
<span><span class="co">#&gt; Joining with `by = join_by(record_id)`</span></span>
<span><span class="va">wide_data</span> <span class="op">|&gt;</span> <span class="fu"><a href="https://rdrr.io/r/utils/str.html" class="external-link">str</a></span><span class="op">(</span><span class="op">)</span></span>
<span><span class="co">#&gt; tibble [6 × 49] (S3: tbl_df/tbl/data.frame)</span></span>
<span><span class="co">#&gt; $ record_id : num [1:6] 1 2 3 4 5 6</span></span>
<span><span class="co">#&gt; ..- attr(*, "label")= chr "ID"</span></span>
<span><span class="co">#&gt; $ cpr : chr [1:6] "1203401OB4" "0102342303" "2301569823" "0204051342" ...</span></span>
<span><span class="co">#&gt; ..- attr(*, "label")= chr "CPR (Danish civil registration number)"</span></span>
<span><span class="co">#&gt; $ inclusion : Date[1:6], format: "2023-03-13" "2023-03-01" ...</span></span>
<span><span class="co">#&gt; $ inclusion_time : 'hms' num [1:6] 12:38:49 10:38:57 12:01:07 20:39:19 ...</span></span>
<span><span class="co">#&gt; ..- attr(*, "units")= chr "secs"</span></span>
<span><span class="co">#&gt; $ dob : Date[1:6], format: "1940-03-12" "1934-02-01" ...</span></span>
<span><span class="co">#&gt; $ age : num [1:6] 83 89.1 66.1 117.9 126.2 ...</span></span>
<span><span class="co">#&gt; ..- attr(*, "label")= chr "Age\r\nNote: Apparently, the build in datediff() function does not handle counting whole years. This results in"| __truncated__</span></span>
<span><span class="co">#&gt; $ age_integer : num [1:6] 83 89 66 117 126 91</span></span>
<span><span class="co">#&gt; ..- attr(*, "label")= chr "Age integer\r\nNote: as opposed to the build in datediff() this handles counting years as integers very well. C"| __truncated__</span></span>
<span><span class="co">#&gt; $ sex : chr [1:6] "female" "male" "male" "female" ...</span></span>
<span><span class="co">#&gt; ..- attr(*, "label")= chr "Legal sex"</span></span>
<span><span class="co">#&gt; $ cohabitation : 'labelled' chr [1:6] "Yes" "Yes" "No" NA ...</span></span>
<span><span class="co">#&gt; ..- attr(*, "label")= chr "Cohabitation"</span></span>
<span><span class="co">#&gt; ..- attr(*, "labels")= Named chr [1:2] "1" "2"</span></span>
<span><span class="co">#&gt; .. ..- attr(*, "names")= chr [1:2] "Yes" "No"</span></span>
<span><span class="co">#&gt; $ hypertension : 'labelled' chr [1:6] "No" "No" "Yes" NA ...</span></span>
<span><span class="co">#&gt; ..- attr(*, "label")= chr "Hypertension"</span></span>
<span><span class="co">#&gt; ..- attr(*, "labels")= Named chr [1:2] "1" "2"</span></span>
<span><span class="co">#&gt; .. ..- attr(*, "names")= chr [1:2] "Yes" "No"</span></span>
<span><span class="co">#&gt; $ diabetes : 'labelled' chr [1:6] "Yes" "No" "Yes" NA ...</span></span>
<span><span class="co">#&gt; ..- attr(*, "label")= chr "Diabetes"</span></span>
<span><span class="co">#&gt; ..- attr(*, "labels")= Named chr [1:2] "1" "2"</span></span>
<span><span class="co">#&gt; .. ..- attr(*, "names")= chr [1:2] "Yes" "No"</span></span>
<span><span class="co">#&gt; $ region : 'labelled' chr [1:6] "East" "South" "North" NA ...</span></span>
<span><span class="co">#&gt; ..- attr(*, "label")= chr "Region"</span></span>
<span><span class="co">#&gt; ..- attr(*, "labels")= Named chr [1:4] "1" "2" "3" "4"</span></span>
<span><span class="co">#&gt; .. ..- attr(*, "names")= chr [1:4] "North" "East" "South" "West"</span></span>
<span><span class="co">#&gt; $ baseline_data_start_complete : chr [1:6] "Incomplete" "Incomplete" "Incomplete" "Incomplete" ...</span></span>
<span><span class="co">#&gt; $ mrs_assessed____inclusion : 'labelled' chr [1:6] "Yes" "Yes" NA NA ...</span></span>
<span><span class="co">#&gt; ..- attr(*, "label")= chr "Assesed"</span></span>
<span><span class="co">#&gt; ..- attr(*, "labels")= Named chr [1:2] "1" "2"</span></span>
<span><span class="co">#&gt; .. ..- attr(*, "names")= chr [1:2] "Yes" "No"</span></span>
<span><span class="co">#&gt; $ mrs_assessed____follow1 : 'labelled' chr [1:6] NA "Yes" "Yes" NA ...</span></span>
<span><span class="co">#&gt; ..- attr(*, "label")= chr "Assesed"</span></span>
<span><span class="co">#&gt; ..- attr(*, "labels")= Named chr [1:2] "1" "2"</span></span>
<span><span class="co">#&gt; .. ..- attr(*, "names")= chr [1:2] "Yes" "No"</span></span>
<span><span class="co">#&gt; $ mrs_assessed____follow2 : 'labelled' chr [1:6] NA NA "Yes" NA ...</span></span>
<span><span class="co">#&gt; ..- attr(*, "label")= chr "Assesed"</span></span>
<span><span class="co">#&gt; ..- attr(*, "labels")= Named chr [1:2] "1" "2"</span></span>
<span><span class="co">#&gt; .. ..- attr(*, "names")= chr [1:2] "Yes" "No"</span></span>
<span><span class="co">#&gt; $ mrs_date____inclusion : Date[1:6], format: "2023-03-13" "2023-03-07" ...</span></span>
<span><span class="co">#&gt; $ mrs_date____follow1 : Date[1:6], format: NA "2023-03-09" ...</span></span>
<span><span class="co">#&gt; $ mrs_date____follow2 : Date[1:6], format: NA NA ...</span></span>
<span><span class="co">#&gt; $ mrs_score____inclusion : 'labelled' num [1:6] 1 1 NA NA NA NA</span></span>
<span><span class="co">#&gt; ..- attr(*, "label")= chr "mRS score"</span></span>
<span><span class="co">#&gt; ..- attr(*, "labels")= Named chr [1:6] "0" "1" "2" "3" ...</span></span>
<span><span class="co">#&gt; .. ..- attr(*, "names")= chr [1:6] "0" "1" "2" "3" ...</span></span>
<span><span class="co">#&gt; $ mrs_score____follow1 : 'labelled' num [1:6] NA 3 2 NA NA NA</span></span>
<span><span class="co">#&gt; ..- attr(*, "label")= chr "mRS score"</span></span>
<span><span class="co">#&gt; ..- attr(*, "labels")= Named chr [1:6] "0" "1" "2" "3" ...</span></span>
<span><span class="co">#&gt; .. ..- attr(*, "names")= chr [1:6] "0" "1" "2" "3" ...</span></span>
<span><span class="co">#&gt; $ mrs_score____follow2 : 'labelled' num [1:6] NA NA 1 NA NA NA</span></span>
<span><span class="co">#&gt; ..- attr(*, "label")= chr "mRS score"</span></span>
<span><span class="co">#&gt; ..- attr(*, "labels")= Named chr [1:6] "0" "1" "2" "3" ...</span></span>
<span><span class="co">#&gt; .. ..- attr(*, "names")= chr [1:6] "0" "1" "2" "3" ...</span></span>
<span><span class="co">#&gt; $ mrs_complete____inclusion : chr [1:6] "Incomplete" "Incomplete" NA NA ...</span></span>
<span><span class="co">#&gt; $ mrs_complete____follow1 : chr [1:6] NA "Incomplete" "Incomplete" NA ...</span></span>
<span><span class="co">#&gt; $ mrs_complete____follow2 : chr [1:6] NA NA "Incomplete" NA ...</span></span>
<span><span class="co">#&gt; $ event_datetime____1____follow1 : POSIXct[1:6], format: NA "2024-01-18 12:49:42" ...</span></span>
<span><span class="co">#&gt; $ event_datetime____1____follow2 : POSIXct[1:6], format: NA NA ...</span></span>
<span><span class="co">#&gt; $ event_age____1____follow1 : num [1:6] NA NA NA 96 127 NA</span></span>
<span><span class="co">#&gt; ..- attr(*, "label")= chr "Age at event"</span></span>
<span><span class="co">#&gt; $ event_age____1____follow2 : num [1:6] NA NA NA 118 NA NA</span></span>
<span><span class="co">#&gt; ..- attr(*, "label")= chr "Age at event"</span></span>
<span><span class="co">#&gt; $ event_type____1____follow1 : 'labelled' chr [1:6] NA "TIA" "AIS" "TIA" ...</span></span>
<span><span class="co">#&gt; ..- attr(*, "label")= chr "Neurovascular event"</span></span>
<span><span class="co">#&gt; ..- attr(*, "labels")= Named chr [1:5] "1" "2" "3" "4" ...</span></span>
<span><span class="co">#&gt; .. ..- attr(*, "names")= chr [1:5] "TIA" "AIS" "ICH" "SAH" ...</span></span>
<span><span class="co">#&gt; $ event_type____1____follow2 : 'labelled' chr [1:6] NA NA "ICH" "AIS" ...</span></span>
<span><span class="co">#&gt; ..- attr(*, "label")= chr "Neurovascular event"</span></span>
<span><span class="co">#&gt; ..- attr(*, "labels")= Named chr [1:5] "1" "2" "3" "4" ...</span></span>
<span><span class="co">#&gt; .. ..- attr(*, "names")= chr [1:5] "TIA" "AIS" "ICH" "SAH" ...</span></span>
<span><span class="co">#&gt; $ new_event_complete____1____follow1: chr [1:6] NA "Incomplete" "Incomplete" "Complete" ...</span></span>
<span><span class="co">#&gt; $ new_event_complete____1____follow2: chr [1:6] NA NA "Incomplete" "Complete" ...</span></span>
<span><span class="co">#&gt; $ event_datetime____2____follow1 : POSIXct[1:6], format: NA NA ...</span></span>
<span><span class="co">#&gt; $ event_datetime____2____follow2 : POSIXct[1:6], format: NA NA ...</span></span>
<span><span class="co">#&gt; $ event_datetime____3____follow1 : POSIXct[1:6], format: NA NA ...</span></span>
<span><span class="co">#&gt; $ event_datetime____3____follow2 : POSIXct[1:6], format: NA NA ...</span></span>
<span><span class="co">#&gt; $ event_age____2____follow1 : num [1:6] NA NA NA 105 127 NA</span></span>
<span><span class="co">#&gt; ..- attr(*, "label")= chr "Age at event"</span></span>
<span><span class="co">#&gt; $ event_age____2____follow2 : num [1:6] NA NA NA 118 NA NA</span></span>
<span><span class="co">#&gt; ..- attr(*, "label")= chr "Age at event"</span></span>
<span><span class="co">#&gt; $ event_age____3____follow1 : num [1:6] NA NA NA NA NA NA</span></span>
<span><span class="co">#&gt; ..- attr(*, "label")= chr "Age at event"</span></span>
<span><span class="co">#&gt; $ event_age____3____follow2 : num [1:6] NA NA NA 118 NA NA</span></span>
<span><span class="co">#&gt; ..- attr(*, "label")= chr "Age at event"</span></span>
<span><span class="co">#&gt; $ event_type____2____follow1 : 'labelled' chr [1:6] NA NA "ICH" "TIA" ...</span></span>
<span><span class="co">#&gt; ..- attr(*, "label")= chr "Neurovascular event"</span></span>
<span><span class="co">#&gt; ..- attr(*, "labels")= Named chr [1:5] "1" "2" "3" "4" ...</span></span>
<span><span class="co">#&gt; .. ..- attr(*, "names")= chr [1:5] "TIA" "AIS" "ICH" "SAH" ...</span></span>
<span><span class="co">#&gt; $ event_type____2____follow2 : 'labelled' chr [1:6] NA NA "TIA" "ICH" ...</span></span>
<span><span class="co">#&gt; ..- attr(*, "label")= chr "Neurovascular event"</span></span>
<span><span class="co">#&gt; ..- attr(*, "labels")= Named chr [1:5] "1" "2" "3" "4" ...</span></span>
<span><span class="co">#&gt; .. ..- attr(*, "names")= chr [1:5] "TIA" "AIS" "ICH" "SAH" ...</span></span>
<span><span class="co">#&gt; $ event_type____3____follow1 : 'labelled' chr [1:6] NA NA NA NA ...</span></span>
<span><span class="co">#&gt; ..- attr(*, "label")= chr "Neurovascular event"</span></span>
<span><span class="co">#&gt; ..- attr(*, "labels")= Named chr [1:5] "1" "2" "3" "4" ...</span></span>
<span><span class="co">#&gt; .. ..- attr(*, "names")= chr [1:5] "TIA" "AIS" "ICH" "SAH" ...</span></span>
<span><span class="co">#&gt; $ event_type____3____follow2 : 'labelled' chr [1:6] NA NA "AIS" "Unknown" ...</span></span>
<span><span class="co">#&gt; ..- attr(*, "label")= chr "Neurovascular event"</span></span>
<span><span class="co">#&gt; ..- attr(*, "labels")= Named chr [1:5] "1" "2" "3" "4" ...</span></span>
<span><span class="co">#&gt; .. ..- attr(*, "names")= chr [1:5] "TIA" "AIS" "ICH" "SAH" ...</span></span>
<span><span class="co">#&gt; $ new_event_complete____2____follow1: chr [1:6] NA NA "Incomplete" "Complete" ...</span></span>
<span><span class="co">#&gt; $ new_event_complete____2____follow2: chr [1:6] NA NA "Incomplete" "Incomplete" ...</span></span>
<span><span class="co">#&gt; $ new_event_complete____3____follow1: chr [1:6] NA NA NA NA ...</span></span>
<span><span class="co">#&gt; $ new_event_complete____3____follow2: chr [1:6] NA NA "Incomplete" "Complete" ...</span></span></code></pre></div>
<p>Transfer suffixes to labels:</p>
<div class="sourceCode" id="cb9"><pre class="downlit sourceCode r">
<code class="sourceCode R"><span><span class="va">wide_data_suffixes</span> <span class="op">&lt;-</span> <span class="va">wide_data</span> <span class="op">|&gt;</span> <span class="fu"><a href="../reference/suffix2label.html">suffix2label</a></span><span class="op">(</span><span class="op">)</span></span></code></pre></div>
</div>
<div class="section level2">
<h2 id="creating-a-nice-table">Creating a nice table<a class="anchor" aria-label="anchor" href="#creating-a-nice-table"></a>
</h2>
<div class="sourceCode" id="cb10"><pre class="downlit sourceCode r">
<code class="sourceCode R"><span><span class="va">wide_data_suffixes</span> <span class="op">|&gt;</span></span>
<span> <span class="fu">dplyr</span><span class="fu">::</span><span class="fu"><a href="https://dplyr.tidyverse.org/reference/select.html" class="external-link">select</a></span><span class="op">(</span><span class="va">sex</span>, <span class="va">hypertension</span>, <span class="va">diabetes</span>,<span class="va">mrs_score____follow2</span><span class="op">)</span> <span class="op">|&gt;</span></span>
<span> <span class="fu">gtsummary</span><span class="fu">::</span><span class="fu"><a href="https://www.danieldsjoberg.com/gtsummary/reference/tbl_summary.html" class="external-link">tbl_summary</a></span><span class="op">(</span><span class="op">)</span></span></code></pre></div>
<div id="ulbfdpbcyv" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#ulbfdpbcyv table {
font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
#ulbfdpbcyv thead, #ulbfdpbcyv tbody, #ulbfdpbcyv tfoot, #ulbfdpbcyv tr, #ulbfdpbcyv td, #ulbfdpbcyv th {
border-style: none;
}
#ulbfdpbcyv p {
margin: 0;
padding: 0;
}
#ulbfdpbcyv .gt_table {
display: table;
border-collapse: collapse;
line-height: normal;
margin-left: auto;
margin-right: auto;
color: #333333;
font-size: 16px;
font-weight: normal;
font-style: normal;
background-color: #FFFFFF;
width: auto;
border-top-style: solid;
border-top-width: 2px;
border-top-color: #A8A8A8;
border-right-style: none;
border-right-width: 2px;
border-right-color: #D3D3D3;
border-bottom-style: solid;
border-bottom-width: 2px;
border-bottom-color: #A8A8A8;
border-left-style: none;
border-left-width: 2px;
border-left-color: #D3D3D3;
}
#ulbfdpbcyv .gt_caption {
padding-top: 4px;
padding-bottom: 4px;
}
#ulbfdpbcyv .gt_title {
color: #333333;
font-size: 125%;
font-weight: initial;
padding-top: 4px;
padding-bottom: 4px;
padding-left: 5px;
padding-right: 5px;
border-bottom-color: #FFFFFF;
border-bottom-width: 0;
}
#ulbfdpbcyv .gt_subtitle {
color: #333333;
font-size: 85%;
font-weight: initial;
padding-top: 3px;
padding-bottom: 5px;
padding-left: 5px;
padding-right: 5px;
border-top-color: #FFFFFF;
border-top-width: 0;
}
#ulbfdpbcyv .gt_heading {
background-color: #FFFFFF;
text-align: center;
border-bottom-color: #FFFFFF;
border-left-style: none;
border-left-width: 1px;
border-left-color: #D3D3D3;
border-right-style: none;
border-right-width: 1px;
border-right-color: #D3D3D3;
}
#ulbfdpbcyv .gt_bottom_border {
border-bottom-style: solid;
border-bottom-width: 2px;
border-bottom-color: #D3D3D3;
}
#ulbfdpbcyv .gt_col_headings {
border-top-style: solid;
border-top-width: 2px;
border-top-color: #D3D3D3;
border-bottom-style: solid;
border-bottom-width: 2px;
border-bottom-color: #D3D3D3;
border-left-style: none;
border-left-width: 1px;
border-left-color: #D3D3D3;
border-right-style: none;
border-right-width: 1px;
border-right-color: #D3D3D3;
}
#ulbfdpbcyv .gt_col_heading {
color: #333333;
background-color: #FFFFFF;
font-size: 100%;
font-weight: normal;
text-transform: inherit;
border-left-style: none;
border-left-width: 1px;
border-left-color: #D3D3D3;
border-right-style: none;
border-right-width: 1px;
border-right-color: #D3D3D3;
vertical-align: bottom;
padding-top: 5px;
padding-bottom: 6px;
padding-left: 5px;
padding-right: 5px;
overflow-x: hidden;
}
#ulbfdpbcyv .gt_column_spanner_outer {
color: #333333;
background-color: #FFFFFF;
font-size: 100%;
font-weight: normal;
text-transform: inherit;
padding-top: 0;
padding-bottom: 0;
padding-left: 4px;
padding-right: 4px;
}
#ulbfdpbcyv .gt_column_spanner_outer:first-child {
padding-left: 0;
}
#ulbfdpbcyv .gt_column_spanner_outer:last-child {
padding-right: 0;
}
#ulbfdpbcyv .gt_column_spanner {
border-bottom-style: solid;
border-bottom-width: 2px;
border-bottom-color: #D3D3D3;
vertical-align: bottom;
padding-top: 5px;
padding-bottom: 5px;
overflow-x: hidden;
display: inline-block;
width: 100%;
}
#ulbfdpbcyv .gt_spanner_row {
border-bottom-style: hidden;
}
#ulbfdpbcyv .gt_group_heading {
padding-top: 8px;
padding-bottom: 8px;
padding-left: 5px;
padding-right: 5px;
color: #333333;
background-color: #FFFFFF;
font-size: 100%;
font-weight: initial;
text-transform: inherit;
border-top-style: solid;
border-top-width: 2px;
border-top-color: #D3D3D3;
border-bottom-style: solid;
border-bottom-width: 2px;
border-bottom-color: #D3D3D3;
border-left-style: none;
border-left-width: 1px;
border-left-color: #D3D3D3;
border-right-style: none;
border-right-width: 1px;
border-right-color: #D3D3D3;
vertical-align: middle;
text-align: left;
}
#ulbfdpbcyv .gt_empty_group_heading {
padding: 0.5px;
color: #333333;
background-color: #FFFFFF;
font-size: 100%;
font-weight: initial;
border-top-style: solid;
border-top-width: 2px;
border-top-color: #D3D3D3;
border-bottom-style: solid;
border-bottom-width: 2px;
border-bottom-color: #D3D3D3;
vertical-align: middle;
}
#ulbfdpbcyv .gt_from_md > :first-child {
margin-top: 0;
}
#ulbfdpbcyv .gt_from_md > :last-child {
margin-bottom: 0;
}
#ulbfdpbcyv .gt_row {
padding-top: 8px;
padding-bottom: 8px;
padding-left: 5px;
padding-right: 5px;
margin: 10px;
border-top-style: solid;
border-top-width: 1px;
border-top-color: #D3D3D3;
border-left-style: none;
border-left-width: 1px;
border-left-color: #D3D3D3;
border-right-style: none;
border-right-width: 1px;
border-right-color: #D3D3D3;
vertical-align: middle;
overflow-x: hidden;
}
#ulbfdpbcyv .gt_stub {
color: #333333;
background-color: #FFFFFF;
font-size: 100%;
font-weight: initial;
text-transform: inherit;
border-right-style: solid;
border-right-width: 2px;
border-right-color: #D3D3D3;
padding-left: 5px;
padding-right: 5px;
}
#ulbfdpbcyv .gt_stub_row_group {
color: #333333;
background-color: #FFFFFF;
font-size: 100%;
font-weight: initial;
text-transform: inherit;
border-right-style: solid;
border-right-width: 2px;
border-right-color: #D3D3D3;
padding-left: 5px;
padding-right: 5px;
vertical-align: top;
}
#ulbfdpbcyv .gt_row_group_first td {
border-top-width: 2px;
}
#ulbfdpbcyv .gt_row_group_first th {
border-top-width: 2px;
}
#ulbfdpbcyv .gt_summary_row {
color: #333333;
background-color: #FFFFFF;
text-transform: inherit;
padding-top: 8px;
padding-bottom: 8px;
padding-left: 5px;
padding-right: 5px;
}
#ulbfdpbcyv .gt_first_summary_row {
border-top-style: solid;
border-top-color: #D3D3D3;
}
#ulbfdpbcyv .gt_first_summary_row.thick {
border-top-width: 2px;
}
#ulbfdpbcyv .gt_last_summary_row {
padding-top: 8px;
padding-bottom: 8px;
padding-left: 5px;
padding-right: 5px;
border-bottom-style: solid;
border-bottom-width: 2px;
border-bottom-color: #D3D3D3;
}
#ulbfdpbcyv .gt_grand_summary_row {
color: #333333;
background-color: #FFFFFF;
text-transform: inherit;
padding-top: 8px;
padding-bottom: 8px;
padding-left: 5px;
padding-right: 5px;
}
#ulbfdpbcyv .gt_first_grand_summary_row {
padding-top: 8px;
padding-bottom: 8px;
padding-left: 5px;
padding-right: 5px;
border-top-style: double;
border-top-width: 6px;
border-top-color: #D3D3D3;
}
#ulbfdpbcyv .gt_last_grand_summary_row_top {
padding-top: 8px;
padding-bottom: 8px;
padding-left: 5px;
padding-right: 5px;
border-bottom-style: double;
border-bottom-width: 6px;
border-bottom-color: #D3D3D3;
}
#ulbfdpbcyv .gt_striped {
background-color: rgba(128, 128, 128, 0.05);
}
#ulbfdpbcyv .gt_table_body {
border-top-style: solid;
border-top-width: 2px;
border-top-color: #D3D3D3;
border-bottom-style: solid;
border-bottom-width: 2px;
border-bottom-color: #D3D3D3;
}
#ulbfdpbcyv .gt_footnotes {
color: #333333;
background-color: #FFFFFF;
border-bottom-style: none;
border-bottom-width: 2px;
border-bottom-color: #D3D3D3;
border-left-style: none;
border-left-width: 2px;
border-left-color: #D3D3D3;
border-right-style: none;
border-right-width: 2px;
border-right-color: #D3D3D3;
}
#ulbfdpbcyv .gt_footnote {
margin: 0px;
font-size: 90%;
padding-top: 4px;
padding-bottom: 4px;
padding-left: 5px;
padding-right: 5px;
}
#ulbfdpbcyv .gt_sourcenotes {
color: #333333;
background-color: #FFFFFF;
border-bottom-style: none;
border-bottom-width: 2px;
border-bottom-color: #D3D3D3;
border-left-style: none;
border-left-width: 2px;
border-left-color: #D3D3D3;
border-right-style: none;
border-right-width: 2px;
border-right-color: #D3D3D3;
}
#ulbfdpbcyv .gt_sourcenote {
font-size: 90%;
padding-top: 4px;
padding-bottom: 4px;
padding-left: 5px;
padding-right: 5px;
}
#ulbfdpbcyv .gt_left {
text-align: left;
}
#ulbfdpbcyv .gt_center {
text-align: center;
}
#ulbfdpbcyv .gt_right {
text-align: right;
font-variant-numeric: tabular-nums;
}
#ulbfdpbcyv .gt_font_normal {
font-weight: normal;
}
#ulbfdpbcyv .gt_font_bold {
font-weight: bold;
}
#ulbfdpbcyv .gt_font_italic {
font-style: italic;
}
#ulbfdpbcyv .gt_super {
font-size: 65%;
}
#ulbfdpbcyv .gt_footnote_marks {
font-size: 75%;
vertical-align: 0.4em;
position: initial;
}
#ulbfdpbcyv .gt_asterisk {
font-size: 100%;
vertical-align: 0;
}
#ulbfdpbcyv .gt_indent_1 {
text-indent: 5px;
}
#ulbfdpbcyv .gt_indent_2 {
text-indent: 10px;
}
#ulbfdpbcyv .gt_indent_3 {
text-indent: 15px;
}
#ulbfdpbcyv .gt_indent_4 {
text-indent: 20px;
}
#ulbfdpbcyv .gt_indent_5 {
text-indent: 25px;
}
#ulbfdpbcyv .katex-display {
display: inline-flex !important;
margin-bottom: 0.75em !important;
}
#ulbfdpbcyv div.Reactable > div.rt-table > div.rt-thead > div.rt-tr.rt-tr-group-header > div.rt-th-group:after {
height: 0px !important;
}
</style>
<table class="table gt_table" data-quarto-disable-processing="false" data-quarto-bootstrap="false">
<thead><tr class="gt_col_headings">
<th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" scope="col" id="label"><span class="gt_from_md"><strong>Characteristic</strong></span></th>
<th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="stat_0">
<span class="gt_from_md"><strong>N = 6</strong></span><span class="gt_footnote_marks" style="white-space:nowrap;font-style:italic;font-weight:normal;line-height:0;"><sup>1</sup></span>
</th>
</tr></thead>
<tbody class="gt_table_body">
<tr>
<td headers="label" class="gt_row gt_left">Legal sex</td>
<td headers="stat_0" class="gt_row gt_center"><br></td>
</tr>
<tr>
<td headers="label" class="gt_row gt_left">    female</td>
<td headers="stat_0" class="gt_row gt_center">3 (50%)</td>
</tr>
<tr>
<td headers="label" class="gt_row gt_left">    male</td>
<td headers="stat_0" class="gt_row gt_center">3 (50%)</td>
</tr>
<tr>
<td headers="label" class="gt_row gt_left">Hypertension</td>
<td headers="stat_0" class="gt_row gt_center"><br></td>
</tr>
<tr>
<td headers="label" class="gt_row gt_left">    No</td>
<td headers="stat_0" class="gt_row gt_center">2 (40%)</td>
</tr>
<tr>
<td headers="label" class="gt_row gt_left">    Yes</td>
<td headers="stat_0" class="gt_row gt_center">3 (60%)</td>
</tr>
<tr>
<td headers="label" class="gt_row gt_left">    Unknown</td>
<td headers="stat_0" class="gt_row gt_center">1</td>
</tr>
<tr>
<td headers="label" class="gt_row gt_left">Diabetes</td>
<td headers="stat_0" class="gt_row gt_center"><br></td>
</tr>
<tr>
<td headers="label" class="gt_row gt_left">    No</td>
<td headers="stat_0" class="gt_row gt_center">2 (40%)</td>
</tr>
<tr>
<td headers="label" class="gt_row gt_left">    Yes</td>
<td headers="stat_0" class="gt_row gt_center">3 (60%)</td>
</tr>
<tr>
<td headers="label" class="gt_row gt_left">    Unknown</td>
<td headers="stat_0" class="gt_row gt_center">1</td>
</tr>
<tr>
<td headers="label" class="gt_row gt_left">mRS score (follow2)</td>
<td headers="stat_0" class="gt_row gt_center"><br></td>
</tr>
<tr>
<td headers="label" class="gt_row gt_left">    1</td>
<td headers="stat_0" class="gt_row gt_center">1 (100%)</td>
</tr>
<tr>
<td headers="label" class="gt_row gt_left">    Unknown</td>
<td headers="stat_0" class="gt_row gt_center">5</td>
</tr>
</tbody>
<tfoot class="gt_footnotes"><tr>
<td class="gt_footnote" colspan="2">
<span class="gt_footnote_marks" style="white-space:nowrap;font-style:italic;font-weight:normal;line-height:0;"><sup>1</sup></span> <span class="gt_from_md">n (%)</span>
</td>
</tr></tfoot>
</table>
</div>
</div>
</main><aside class="col-md-3"><nav id="toc" aria-label="Table of contents"><h2>On this page</h2>
</nav></aside>
</div>
<footer><div class="pkgdown-footer-left">
<p>Developed by Andreas Gammelgaard Damsbo, Paul Egeler.</p>
</div>
<div class="pkgdown-footer-right">
<p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.1.1.</p>
</div>
</footer>
</div>
</body>
</html>