Skip to content

Commit

Permalink
manually merging changes from restructuring
Browse files Browse the repository at this point in the history
  • Loading branch information
faaiz-25 committed Nov 28, 2023
1 parent b1cfc8b commit c880842
Show file tree
Hide file tree
Showing 124 changed files with 43 additions and 443,220 deletions.
Binary file modified .DS_Store
Binary file not shown.
12 changes: 12 additions & 0 deletions 02-geomapping-ICS_22_23.R
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,18 @@ saveWidget(m03, "./outputs/icb_trusts_map_16_11_23.html")
#############################################
# Summary metric
#############################################
#get the stp codes for trusts from etr
# etr = read.csv('/Users/muhammad-faaiz.shanawas/Documents/GitHub/open-cyber/data/etr.csv', header = FALSE)
# etr = etr[,c('V1', 'V4')]
# etr = select(etr, 'ODS.Code' = 'V1', 'STP21CDH' = 'V4')
#
# #get the final 4 stp codes of the 4 care trusts from ect (modified to change column names and select relevant columns)
# ect = read.csv('/Users/muhammad-faaiz.shanawas/Documents/GitHub/open-cyber/data/ect_modified_21_22.csv')
# ect = select(ect, 'ODS.Code', 'STP21CDH')
#
# etr_ect = rbind(etr, ect)


trusts_data = trusts_data %>% rename(ICB23CDH = High.Level.Health.Geography,
ICB23NM = Integrated.Care.Board..where.available..from.ODS.,
Sector = Primary.Sector)
Expand Down
41 changes: 7 additions & 34 deletions 20_21.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,6 @@
<script src="https://cdn.plot.ly/plotly-latest.min.js"></script>

# Open Statistics - Cyber Security
<!---
{% include update.html %}
<div class="nhsuk-warning-callout">
<h3 class="nhsuk-warning-callout__label">
Important<span class="nhsuk-u-visually-hidden">:</span>
</h3>
<p>This project is currently in development. For more information please contact <a
class="nhsuk-footer__list-item-link"
href="{{ site.github.owner_url }}"
>{{ site.github.owner_name }}</a>
</p>
</div>
-->

<div class="nhsuk-warning-callout">
<h3 class="nhsuk-warning-callout__label">
Expand Down Expand Up @@ -53,27 +39,14 @@ Finally, for each ICS, the CCG and Trust scores are weighted equally to arrive a

The final scaling for each of the summary metrics displayed will have an upper bound of 3 and a lower bound of -3.

<!---
<b>Emergency Preparedness, Resilience and Response (EPRR) Score</b>
Organisations are ranked in a 4 tier system, to measure their impact of risk. This is used to calculate one of our summary metrics below. The Tier ranks are mapped as follows:
<li>Tier 1 - Major Trauma Centres/ Ambulance Trusts/ NHS Blood & Transplant = 4</li>
<li>Tier 2 - Trauma Units/ Specialist Hospitals = 3</li>
<li>Tier 3 - Geographically remote / High secure Mental Health = 2</li>
<li>Tier 4 - Community Hospitals = 1</li>
<br>
<b>Successor Organisations</b>
<br>
Organisations open 31st March 2021 are considered (the end of 20/21, the financial year of the last DSPT edition that closed).
Organisations without a published DSPT status as a result of a merger, inherit their DSPT status from it's successor organisation if published. Otherwise, the DSPT status will be mapped as 'Not Published'.
-->
## Summary of DSPT Compliance (2020/2021 edition).
<br>
Summary statistics from the DSPT 2020/21 toolkit are shown.

{% include data_DSPTmetric2022-02-08.html %}
<iframe src="./outputs/data_DSPTmetric2022-02-08.html " height="600px" width="100%" style="border:none;"></iframe>

<hr class="nhsuk-u-margin-top-0 nhsuk-u-margin-bottom-6">


<iframe src="./outputs/barchart_summary_FY2021_2022-02-28.html" height="600px" width="100%" style="border:none;"></iframe>

Expand All @@ -84,7 +57,7 @@ Summary statistics from the DSPT 2020/21 toolkit are shown.
<br>
The compliance of individual CCGs and Trusts are mapped below, with ICS boundaries. Toggle the boxes on the top right-hand side to add layers.

<iframe src="chloropleth_DSPT_CCG_Trusts.html" height="600px" width="100%" style="border:none;"></iframe>
<iframe src="./outputs/chloropleth_DSPT_CCG_Trusts.html" height="600px" width="100%" style="border:none;"></iframe>

<hr class="nhsuk-u-margin-top-0 nhsuk-u-margin-bottom-6">

Expand All @@ -102,15 +75,15 @@ The proportions of trust compliance within each ICS with boundaries (in black) a
<br>
The proportions of trust compliance within each ICS with boundaries (in black) are shown. The ICSs are colored to represent the patient population level. The darker the shade of blue the higher the patient population level.

<iframe src="chloropleth_DSPT_PieCharts_population.html" height="600px" width="100%" style="border:none;"></iframe>
<iframe src="./outputs/chloropleth_DSPT_PieCharts_population.html" height="600px" width="100%" style="border:none;"></iframe>

<hr class="nhsuk-u-margin-top-0 nhsuk-u-margin-bottom-6">


## ICSs Composite Compliance - CCG and Trust Score Average Weighted For Population
<br>
The compliance of individual ICSs, made up of a composite score of 50% CCG scores which have been weighted for population and 50% of a simple average of Trust scores. Region boundaries are displayed in blue.
<iframe src="chloropleth_DSPT_CCGp_Trusts.html" height="600px" width="100%" style="border:none;"></iframe>
<iframe src="./outputs/chloropleth_DSPT_CCGp_Trusts.html" height="600px" width="100%" style="border:none;"></iframe>

<hr class="nhsuk-u-margin-top-0 nhsuk-u-margin-bottom-6">
<!---
Expand Down
42 changes: 8 additions & 34 deletions 21_22.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,6 @@
,<script src="https://cdn.plot.ly/plotly-latest.min.js"></script>

# Open Statistics - Cyber Security
<!---
{% include update.html %}
<div class="nhsuk-warning-callout">
<h3 class="nhsuk-warning-callout__label">
Important<span class="nhsuk-u-visually-hidden">:</span>
</h3>
<p>This project is currently in development. For more information please contact <a
class="nhsuk-footer__list-item-link"
href="{{ site.github.owner_url }}"
>{{ site.github.owner_name }}</a>
</p>
</div>
-->

<div class="nhsuk-warning-callout">
<h3 class="nhsuk-warning-callout__label">
Expand Down Expand Up @@ -57,27 +43,15 @@ Finally, for each ICS, the CCG and Trust scores are weighted equally to arrive a

The final scaling for each of the summary metrics displayed will have an upper bound of 3 and a lower bound of -3.

<!---
<b>Emergency Preparedness, Resilience and Response (EPRR) Score</b>
Organisations are ranked in a 4 tier system, to measure their impact of risk. This is used to calculate one of our summary metrics below. The Tier ranks are mapped as follows:
<li>Tier 1 - Major Trauma Centres/ Ambulance Trusts/ NHS Blood & Transplant = 4</li>
<li>Tier 2 - Trauma Units/ Specialist Hospitals = 3</li>
<li>Tier 3 - Geographically remote / High secure Mental Health = 2</li>
<li>Tier 4 - Community Hospitals = 1</li>
<br>
<b>Successor Organisations</b>
<br>
Organisations open 31st March 2021 are considered (the end of 20/21, the financial year of the last DSPT edition that closed).
Organisations without a published DSPT status as a result of a merger, inherit their DSPT status from it's successor organisation if published. Otherwise, the DSPT status will be mapped as 'Not Published'.
-->
## Summary of DSPT Compliance (2021/2022 edition).
<br>
Summary statistics from the DSPT 2021/22 toolkit are shown.

{% include cross_table_summary_21_222022-10-05.html %}
{cross_table_summary_21_222022-10-05.html %}

<iframe src="./outputs/cross_table_summary_21_222022-10-05.html" height="600px" width="100%" style="border:none;"></iframe>

<hr class="nhsuk-u-margin-top-0 nhsuk-u-margin-bottom-6">

<iframe src="./outputs/dspt_summary_chart_21_22.html" height="600px" width="100%" style="border:none;"></iframe>

Expand All @@ -89,7 +63,7 @@ Summary statistics from the DSPT 2021/22 toolkit are shown.
The compliance of individual CCGs and Trusts are mapped below, with ICS boundaries. Toggle the boxes on the top right-hand side to add layers.


<iframe src="ccg_trusts_map_03_10_22.html" height="600px" width="100%" style="border:none;"></iframe>
<iframe src="./outputs/ccg_trusts_map_03_10_22.html" height="600px" width="100%" style="border:none;"></iframe>

<hr class="nhsuk-u-margin-top-0 nhsuk-u-margin-bottom-6">

Expand All @@ -98,7 +72,7 @@ The compliance of individual CCGs and Trusts are mapped below, with ICS boundari
<br>
The proportions of trust compliance within each ICS with boundaries (in black) are shown. The ICSs are colored to represent the patient population level. The darker the shade of blue the higher the patient population level.

<iframe src="ICS_pie_chart_03_10_22.html" height="600px" width="100%" style="border:none;"></iframe>
<iframe src="./outputs/ICS_pie_chart_03_10_22.html" height="600px" width="100%" style="border:none;"></iframe>

<hr class="nhsuk-u-margin-top-0 nhsuk-u-margin-bottom-6">

Expand All @@ -107,7 +81,7 @@ The proportions of trust compliance within each ICS with boundaries (in black) a
The compliance of individual ICSs, made up of a composite score of 50% CCG scores which have been weighted for population and 50% of a simple average of Trust scores. Region boundaries are displayed in blue.


<iframe src="ICS_composite_map_03_10_22.html" height="600px" width="100%" style="border:none;"></iframe>
<iframe src="./outputs/ICS_composite_map_03_10_22.html" height="600px" width="100%" style="border:none;"></iframe>

<hr class="nhsuk-u-margin-top-0 nhsuk-u-margin-bottom-6">

Expand Down
Loading

0 comments on commit c880842

Please sign in to comment.