Skip to content

Commit 00b8c2a

Browse files
SouthSouth
authored andcommitted
add safehr intro to readme, remove uclh from page names
1 parent 1a9f8c5 commit 00b8c2a

19 files changed

+12
-10
lines changed
File renamed without changes.

02-uclh-omop-walkthrough-critical-care.md renamed to 02-omop-walkthrough-critical-care.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
2-
<!-- *.md is generated from *.Rmd in /dynamic-docs/, to update edit *.Rmd, re-knit, copy *.md to root folder, delete YAML header so it displays better in Github -->
1+
<!-- *.md is generated from `*.Rmd` in /dynamic-docs/, to update edit `*.Rmd`, re-knit, copy `*.md` & the `*_files` folder to root, delete YAML header so it displays better in Github, don't delete `.html` because that will delete folder and images used by the md. We can automate this process later. -->
32

43

54
This document is an introductory walkthrough, demonstrating how to read into R some OMOP data from a series of csv files, join on concept names and explore and visualise the data.
@@ -37,7 +36,7 @@ Here we will download & read in some UCLH critical care data stored in Github (i
3736
``` r
3837
repo <- "SAFEHR-data/uclh-research-discovery"
3938
path <- "_projects/uclh_cchic_s0/data"
40-
destdata <- here("dynamic-docs/02-uclh-omop-walkthrough-critical-care/data")
39+
destdata <- here("dynamic-docs/02-omop-walkthrough-critical-care/data")
4140

4241
# only download if not already present
4342
if (! file.exists(file.path(destdata,"person.csv")))
@@ -133,7 +132,7 @@ ggplot(omop$person, aes(x=year_of_birth, fill = as.factor(gender_concept_id))) +
133132
theme_minimal()
134133
```
135134

136-
![](02-uclh-omop-walkthrough-critical-care_files/figure-html/explore-person-1.png)<!-- -->
135+
![](02-omop-walkthrough-critical-care_files/figure-html/explore-person-1.png)<!-- -->
137136

138137
In the plot above bars are coloured by `gender_concept_id` which is the OMOP ID for gender, but we don't actually know which is which. We will look at resolving that by retrieving OMOP concept names in the next section.
139138

@@ -165,7 +164,7 @@ ggplot(omop_named$person, aes(x=year_of_birth, fill = as.factor(gender_concept_n
165164
theme_minimal()
166165
```
167166

168-
![](02-uclh-omop-walkthrough-critical-care_files/figure-html/omop-join-names-all-1.png)<!-- -->
167+
![](02-omop-walkthrough-critical-care_files/figure-html/omop-join-names-all-1.png)<!-- -->
169168

170169
## Looking at the `measurement` table
171170

@@ -403,7 +402,7 @@ omop_named$visit_occurrence |>
403402
theme(legend.position = "none")
404403
```
405404

406-
![](02-uclh-omop-walkthrough-critical-care_files/figure-html/explore-visit_occurrence-1.png)<!-- -->
405+
![](02-omop-walkthrough-critical-care_files/figure-html/explore-visit_occurrence-1.png)<!-- -->
407406

408407

409408
## Joining `person` data to other tables
@@ -428,7 +427,7 @@ freq_top_measures |>
428427
theme(legend.position = "none")
429428
```
430429

431-
![](02-uclh-omop-walkthrough-critical-care_files/figure-html/join-person-measurement-1.png)<!-- -->
430+
![](02-omop-walkthrough-critical-care_files/figure-html/join-person-measurement-1.png)<!-- -->
432431

433432
Note that we use `left_join` here because we only want to join on `person` information for rows occurring in the `measurement` table which is the left hand argument of the join. Also note that in this example we end up with one row per patient because the synthetic `measurement` table only has one row per patient. Usually we would expect multiple measurements per patient that would result in multiple rows per patient in the joined table.
434433

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
# Starter guide for working with [SAFEHR-data](https://www.uclhospitals.brc.nihr.ac.uk/core-themes/safehr)
22

3+
SAFEHR (Secure or Anonymised Framework for Electronic Health Records) is a collaborative cross UCLH-UCL team supporting data access and extraction for research.
4+
5+
This repository hosts a growing collection of documentation for working with UCLH clinical data.
36

47
Help file | content
58
-------------------------- | ------------------------------
6-
[01-uclh-clinical-data-omop-intro](01-uclh-clinical-data-omop-intro.md) | intro to clinical data & OMOP
7-
[02-uclh-omop-walkthrough-critical-care](02-uclh-omop-walkthrough-critical-care.md) | reading in UCLH synthetic data in OMOP format & first exploration
9+
[01-clinical-data-omop-intro](01-clinical-data-omop-intro.md) | intro to clinical data & OMOP
10+
[02-omop-walkthrough-critical-care](02-omop-walkthrough-critical-care.md) | reading in UCLH synthetic data in OMOP format & first exploration
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Here we will download & read in some UCLH critical care data stored in Github (i
4848
4949
repo <- "SAFEHR-data/uclh-research-discovery"
5050
path <- "_projects/uclh_cchic_s0/data"
51-
destdata <- here("dynamic-docs/02-uclh-omop-walkthrough-critical-care/data")
51+
destdata <- here("dynamic-docs/02-omop-walkthrough-critical-care/data")
5252
5353
# only download if not already present
5454
if (! file.exists(file.path(destdata,"person.csv")))

0 commit comments

Comments
 (0)