This notebook displays some of the data that are available on UDAL regarding CSDS. It is not a complete description, for there are many tables and millions of records. Hopefully, however, it will help point us in the right direction for further investigation.
── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ──
✔ dplyr 1.1.4 ✔ readr 2.1.5
✔ forcats 1.0.0 ✔ stringr 1.5.1
✔ ggplot2 3.5.1 ✔ tibble 3.2.1
✔ lubridate 1.9.3 ✔ tidyr 1.3.1
✔ purrr 1.0.2
── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
✖ dplyr::filter() masks stats::filter()
✖ dplyr::lag() masks stats::lag()
ℹ Use the conflicted package (<http://conflicted.r-lib.org/>) to force all conflicts to become errors
library(scales)
Attaching package: 'scales'
The following object is masked from 'package:purrr':
discard
The following object is masked from 'package:readr':
col_factor
# open connectioncon <-dbConnect(odbc::odbc(), dsn="udal_prod", timeout =10)
a <-ggplot(df_age, aes(x = AgeYr_Contact_Date, y = Records))a +geom_bar(stat ="identity") +ggtitle("Distribution of Care Activity Records") +xlab("Patient Age") +ylab("Count of Records") +scale_y_continuous(labels = comma)
Warning: Removed 1 row containing missing values or values outside the scale range
(`geom_bar()`).
b <-ggplot(df_month, aes(x = Der_Financial_Year, y = Records, fill = Der_Financial_Month))b +geom_bar(stat ="identity") +ggtitle("Time Coverage of Care Contact Table") +xlab("Financial Year") +ylab("Count of Records") +scale_y_continuous(labels = comma)
Attendance Status information is poorly completed, but since the number of records is so large there may be a decent sample for analytical purposes.