Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merges rcpch/digital-growth-charts-documentation site into the dGC server repo #209

Open
wants to merge 485 commits into
base: staging
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
485 commits
Select commit Hold shift + click to select a range
3e3304f
minor wording typo changes
anchit-chandran Feb 12, 2023
0e88a60
minor wording typo changes
anchit-chandran Feb 12, 2023
442e565
updated About->'contact' link in YAML
anchit-chandran Feb 15, 2023
265bcaa
removed inline display elements
anchit-chandran Feb 15, 2023
a3e3eb1
made minor wording/typo updates
anchit-chandran Feb 15, 2023
89f866f
pls check correct: added link to growth traj/thrive lines
anchit-chandran Feb 15, 2023
7c61556
updated minor typos in team.md
anchit-chandran Feb 15, 2023
9ed299d
updated broken link and minor typos
anchit-chandran Feb 15, 2023
8e14e7d
very minor typo / wording changes
anchit-chandran Feb 15, 2023
81b4d67
rw'd for minor typos/wording
anchit-chandran Feb 15, 2023
488287a
rw'd pricing for minor typo/wording
anchit-chandran Feb 15, 2023
1e55a2b
rw'd minor changes "api-server.md"
anchit-chandran Feb 15, 2023
8546ba5
rw'd for minor changes
anchit-chandran Feb 15, 2023
729d422
de-duplicated very similar text on page
anchit-chandran Feb 15, 2023
b930e33
rw'd and made shell commands more OS-agnostic
anchit-chandran Feb 15, 2023
8f5ac71
rw'd for minor changes in 'react-component.md'
anchit-chandran Feb 15, 2023
4a1a362
-minor typos
anchit-chandran Feb 17, 2023
e2f3df4
minor reformatting
anchit-chandran Feb 17, 2023
33aa83d
minor changes
anchit-chandran Feb 17, 2023
b890043
significant reformatting of CLI docs
anchit-chandran Feb 21, 2023
ad4d8d7
added name to rw'ers
anchit-chandran Feb 21, 2023
8b457b9
minor rewording react native client
anchit-chandran Feb 21, 2023
651d239
minor changes
anchit-chandran Feb 21, 2023
642eb48
uncomment git plugins that slow dev server updates
anchit-chandran Feb 21, 2023
170636d
Minor updates to support.md
anchit-chandran Feb 21, 2023
d239b5d
Minor updates getting-started.md
anchit-chandran Feb 21, 2023
09db3f2
Minor updates apikeys.md
anchit-chandran Feb 21, 2023
0860620
- added windows tips
anchit-chandran Feb 21, 2023
cacab15
Rw'd api-reference.md, no changes
anchit-chandran Feb 21, 2023
ee64da9
updates client-spec.md - still need to do definitions
anchit-chandran Feb 21, 2023
15b37c1
Rw'd faqs-for-integrators
anchit-chandran Feb 21, 2023
196afae
Deleted 'adding a new endpoint' page
pacharanero Feb 22, 2023
0885b50
Merge pull request #54 from anchit-chandran/md-reviews-anchit
pacharanero Feb 22, 2023
55182a2
Merge pull request #57 from anchit-chandran/review-products
pacharanero Feb 22, 2023
ce9382a
benefitting -> benefiting
pacharanero Feb 22, 2023
fab3983
Merge branch 'live' into aboutsection-review
pacharanero Feb 22, 2023
daefccd
Merge pull request #55 from anchit-chandran/aboutsection-review
pacharanero Feb 22, 2023
a75d7e8
Merge branch 'pr/anchit-chandran/57' into live
pacharanero Feb 22, 2023
e9a6186
added new Cyber Essential cert and updated link to use an embed
pacharanero Feb 22, 2023
0da1c30
Merge branch '58-cyber-essential-certificate-needs-to-be-updated' int…
pacharanero Feb 22, 2023
10a92f5
automatically adds new GH issues in this repo to dGC project via Action
pacharanero Feb 22, 2023
abb8d42
fix bug
pacharanero Feb 22, 2023
12881eb
bug fix 2
pacharanero Feb 22, 2023
b1b6551
fixes hazard autoresponder so it only triggers for a labelled hazard
pacharanero Feb 23, 2023
e9652a0
- pls check -> wrote definitions for gestational age etc
anchit-chandran Feb 23, 2023
45c494c
updated self-host snipped wording
anchit-chandran Feb 23, 2023
7e74532
rw'd faqs for integrators
anchit-chandran Feb 23, 2023
5c686ca
minor rw's
anchit-chandran Feb 23, 2023
3ce482f
adds DSPT page
pacharanero Feb 23, 2023
320568f
Merge pull request #66 from rcpch/dsptk
pacharanero Feb 23, 2023
75bc412
minor changes
anchit-chandran Feb 23, 2023
514041b
removes the page 'adding a new endpoint' from the nav
pacharanero Feb 23, 2023
1ff4eb5
undid commenting out git plugins
anchit-chandran Feb 23, 2023
549f381
temp comment out git plugin
anchit-chandran Feb 23, 2023
998091e
temp comment out git plugin
anchit-chandran Feb 23, 2023
79dba05
Merge branch 'review-clinicians-section' of https://github.com/anchit…
anchit-chandran Feb 23, 2023
50b1638
wording changes for how-the-api-works
anchit-chandran Feb 23, 2023
47226d3
minor changes to prev commit
anchit-chandran Feb 23, 2023
6cb90f4
moved parents to own section
anchit-chandran Feb 23, 2023
f49a858
decent amount of rewording parents section
anchit-chandran Feb 23, 2023
6b0699c
rewording and reformatting of info for clinicians
anchit-chandran Feb 23, 2023
58c76f5
Minor changes
anchit-chandran Feb 23, 2023
3b4ab9c
adds initial DTAC section
pacharanero Feb 24, 2023
e7c6bde
some reverts to support section
pacharanero Feb 24, 2023
d5bb87c
contributer -> contributor
pacharanero Feb 24, 2023
0e497cb
Merge pull request #68 from anchit-chandran/support-integrator-reviews
pacharanero Feb 24, 2023
f13e9ca
adds new status page
pacharanero Feb 24, 2023
435efca
Merge branch 'prerelease' into live
pacharanero Feb 24, 2023
7065078
adds link to DSPT section from Security page
pacharanero Feb 24, 2023
a3bc207
adds a markdown version of the DTAC assessment
pacharanero Feb 24, 2023
f81752a
Merge branch 'dtac' into live
pacharanero Feb 24, 2023
67cb884
minor rw's for date-age-calculations.md
anchit-chandran Feb 28, 2023
75c039a
minor tweaks growth-references.md
anchit-chandran Feb 28, 2023
cc3bd64
minor tweaks faqs-clinicians
anchit-chandran Feb 28, 2023
e0b7854
moved parents faq into own subsection
anchit-chandran Feb 28, 2023
962577d
no changes, disclaimer.md
anchit-chandran Feb 28, 2023
4ffd747
uncomment git plugin
anchit-chandran Feb 28, 2023
3ee7ef4
temp comment out git plugins
anchit-chandran Mar 1, 2023
4c15f1c
moderate rewording
anchit-chandran Mar 1, 2023
3d7d0d5
usual minor rw's
anchit-chandran Mar 1, 2023
e93938d
minor rw's
anchit-chandran Mar 1, 2023
4e3ed96
re-enable git plugins
anchit-chandran Mar 1, 2023
f526b07
minor rw's security.md
anchit-chandran Mar 1, 2023
a9f3bc7
minor rw's
anchit-chandran Mar 1, 2023
eebf1b7
no changes
anchit-chandran Mar 1, 2023
450ee20
update to add Adele and Magda as reviewers
pacharanero Mar 2, 2023
c4671cb
Material for MkDocs 9.1 upgrade
pacharanero Mar 3, 2023
3eacce7
Merge pull request #72 from rcpch/mkdocs-9.0-upgrade
pacharanero Mar 3, 2023
cab138f
revert commenting-out of git-committers section in favour of ENV var
pacharanero Mar 3, 2023
a7cd2ee
Merge branch 'live' into review-technical-section
pacharanero Mar 3, 2023
e04ddc8
Merge pull request #71 from anchit-chandran/review-technical-section
pacharanero Mar 3, 2023
2658491
Merge branch 'live' into review-legal-section
pacharanero Mar 3, 2023
8c948d1
minor revisions to Anchit's PR
pacharanero Mar 3, 2023
35dfaa7
Merge pull request #70 from anchit-chandran/review-legal-section
pacharanero Mar 3, 2023
cedacce
Merge branch 'live' into pr/anchit-chandran/70
pacharanero Mar 3, 2023
8aaf1e5
Merge pull request #74 from rcpch/pr/anchit-chandran/70
pacharanero Mar 3, 2023
218faae
temp comment out git plugin
anchit-chandran Mar 3, 2023
cf22d75
temp comment out git plugin
anchit-chandran Mar 3, 2023
88357d9
wording changes for how-the-api-works
anchit-chandran Mar 3, 2023
8c1724d
minor changes to prev commit
anchit-chandran Mar 3, 2023
1a68fd2
moved parents to own section
anchit-chandran Mar 3, 2023
7ae9e75
decent amount of rewording parents section
anchit-chandran Mar 3, 2023
1a45975
rewording and reformatting of info for clinicians
anchit-chandran Mar 3, 2023
85df71b
Minor changes
anchit-chandran Mar 3, 2023
d4bf735
minor rw's for date-age-calculations.md
anchit-chandran Mar 3, 2023
4a67cf3
minor tweaks growth-references.md
anchit-chandran Mar 3, 2023
013d0a3
minor tweaks faqs-clinicians
anchit-chandran Mar 3, 2023
1401ee1
moved parents faq into own subsection
anchit-chandran Mar 3, 2023
a990f21
no changes, disclaimer.md
anchit-chandran Mar 3, 2023
3408285
minor tweaks
pacharanero Mar 3, 2023
fb39b6f
Merge branch 'review-clinicians-section' of github.com:anchit-chandra…
pacharanero Mar 3, 2023
34a7aec
Merge pull request #69 from anchit-chandran/review-clinicians-section
pacharanero Mar 3, 2023
2fa1431
collects all MkDocs Abbreviations from all files together in a new fi…
pacharanero Mar 3, 2023
44cd377
more abbreviations
pacharanero Mar 3, 2023
5c744e7
Merge pull request #75 from rcpch/abbreviations
pacharanero Mar 3, 2023
0232e9c
added Adele and Anchit to Team page
pacharanero Mar 3, 2023
4eb97a5
Large commit - added docs for each function
anchit-chandran Mar 6, 2023
60fa779
added example usage screenshots
anchit-chandran Mar 6, 2023
fa0e548
added walkthrough of inserting JS code into GAppsScript
anchit-chandran Mar 6, 2023
2e4f371
minor wroding change
anchit-chandran Mar 6, 2023
a39846a
added name to reviewrs
anchit-chandran Mar 6, 2023
da11a21
Merge pull request #78 from anchit-chandran/gsheets-plugin-info
pacharanero Mar 6, 2023
2698479
added Windows version of setting up api server with virtualenv
anchit-chandran Mar 6, 2023
e94596f
updated section specifying PRs must be made to prerelease
anchit-chandran Mar 6, 2023
f1ff1ce
added windows vers of mkdocs setup
anchit-chandran Mar 6, 2023
36da36b
turned mkdocs insiders edition into admonition
anchit-chandran Mar 6, 2023
83fd61b
final tweaks to products section
pacharanero Mar 6, 2023
9487625
Merge branch 'prerelease' into live
pacharanero Mar 6, 2023
ec4ac13
Merge pull request #79 from anchit-chandran/adding-windows-version-fo…
pacharanero Mar 6, 2023
c4d3669
adds toc.follow feature to the navigation
pacharanero Mar 7, 2023
02b549b
upgrade to using 3.11 (latest stable Python) for docs site
pacharanero Mar 7, 2023
28acd40
upgrades the version of the GitHub Actions used by the LIVE deploy wo…
pacharanero Mar 7, 2023
66edf3e
adds UKCA logo
pacharanero Mar 7, 2023
47aeba1
updates docs on editing docs to include python 3.11
pacharanero Mar 7, 2023
bd89ea5
improves the alt text for an image
pacharanero Mar 7, 2023
58d1217
Merge branch 'adding-windows-version-for-setting-up-dev-env' into live
pacharanero Mar 7, 2023
c24297f
Merge branch 'prerelease' of github.com:rcpch/digital-growth-charts-d…
pacharanero Mar 7, 2023
935e1f2
experimental automatic builds against branches and PRs
pacharanero Mar 7, 2023
de66545
Merge pull request #80 from rcpch/prerelease
pacharanero Mar 7, 2023
7453f74
amends GH action
pacharanero Mar 7, 2023
840cc6b
Merge pull request #81 from rcpch/arbitrary-new-branch
pacharanero Mar 7, 2023
d052f24
should add all branches to deploys automatically
pacharanero Mar 7, 2023
91cb541
Merge branch 'arbitrary-new-branch' into prerelease
pacharanero Mar 7, 2023
edeecc8
Merge pull request #82 from rcpch/prerelease
pacharanero Mar 7, 2023
4463e1b
fix to wildcard branch matching
pacharanero Mar 7, 2023
9b23e40
Merge branch 'prerelease' into live
pacharanero Mar 7, 2023
8a203a8
rename the GH action to be accurate to new function
pacharanero Mar 7, 2023
5c34fa8
adds link to the Azure portal
pacharanero Mar 7, 2023
42cf3f3
Merge branch 'live' of github.com:rcpch/digital-growth-charts-documen…
pacharanero Mar 7, 2023
31be5fe
remove extra newline
pacharanero Mar 7, 2023
39cf26a
fixes permissions for PR comments
pacharanero Mar 8, 2023
224b049
Merge pull request #83 from rcpch/prerelease
pacharanero Mar 8, 2023
305b54b
add comment
pacharanero Mar 8, 2023
ab74e47
High level description of the API endpoints
eatyourpeas Mar 8, 2023
0554103
Merge pull request #85 from rcpch/eatyourpeas/issue84
pacharanero Mar 8, 2023
c4ba02a
adds OFC to abbreviations
pacharanero Mar 8, 2023
e4582ca
Merge branch 'prerelease' into live
pacharanero Mar 8, 2023
9c1249f
adds DPO's input on no necessity for DPIA agreement
pacharanero Mar 17, 2023
7f3cc9c
fix to workflow file to enable PDF generation and fix fetch-depth on …
pacharanero Mar 20, 2023
1f4d4b2
fix yaml formatting
pacharanero Mar 20, 2023
9ff0d4e
fix yaml formatting
pacharanero Mar 20, 2023
9a63eb1
allow clipboard access
eatyourpeas Jun 10, 2023
6e571b4
updates the Security page to the new Cyber Essentials certificate (ex…
pacharanero Jun 20, 2023
9537caa
Merge branch 'prerelease' into live
pacharanero Jun 20, 2023
64fbf01
Edits at request of PCHR committee meeting in March
pacharanero Jul 18, 2023
c7351e8
Merge pull request #87 from rcpch/prerelease
pacharanero Jul 18, 2023
bb2299f
Add Marcus Baw as a reviewer of this page
pacharanero Jul 26, 2023
672c0b7
creates new developer docs page for the React client
pacharanero Jul 26, 2023
81c0b80
fixes the badges which had some malformed html/handlebars gumbo in them
pacharanero Jul 26, 2023
30d45aa
adds a docs contributor snippet which we can use in multiple laces
pacharanero Jul 26, 2023
5b74352
adds nav for the react client dev docs
pacharanero Jul 26, 2023
380e42c
additional info about how the client, chart and API work together
pacharanero Jul 26, 2023
e0cd25b
adds comment to the 'fetch-depth' directive in the git-checkout comma…
pacharanero Oct 5, 2023
4ded969
Merge branch 'prerelease' into live
pacharanero Oct 5, 2023
64fbb44
adds .DS_Store to .gitignore
pacharanero Oct 6, 2023
ef9db15
Adds a small instruction to cd into code projects directory before gi…
dc2007git Oct 16, 2023
b558b5c
Merge pull request #91 from dc2007git/live
pacharanero Oct 16, 2023
d0e13c4
adds Danny to team
pacharanero Oct 17, 2023
5624320
adds an audience field in the metadata to help future reviewers
pacharanero Oct 17, 2023
647fbcf
adds susan and updates mow Magda left RCPCH
pacharanero Oct 17, 2023
e6eea3e
adds a developer page for the react component
pacharanero Oct 17, 2023
5525667
Merge branch 'prerelease' into live
pacharanero Oct 17, 2023
964302e
fix styling heading on developer page
pacharanero Oct 17, 2023
2c2b9eb
fix DIscourse and Signal icons (icon name had changed for SIgnal)
pacharanero Oct 18, 2023
3d8f324
moves abbreviations to the main abbreviations.md and fixes MkDocs syntax
pacharanero Oct 28, 2023
cad75f8
adds an internal APIM page which is not in the nav
pacharanero Dec 15, 2023
cc4290f
Adds Dockerfile in preparation for Dockerisation of documentation
pacharanero Dec 15, 2023
5fe102c
fix to formatting of `not_in_nav` directive
pacharanero Dec 15, 2023
4ad0e07
Merge pull request #97 from rcpch/prerelease
pacharanero Dec 15, 2023
f98d458
Add workflow_dispatch to manually test workflow
mbarton Mar 12, 2024
c712683
Remove material insiders token
mbarton Mar 13, 2024
5862c8b
Try to fix error about materialx
mbarton Mar 13, 2024
8b50bf0
Remove pymdomx to try and fix error
mbarton Mar 13, 2024
97f6e18
Duh put back mkdocs-material
mbarton Mar 13, 2024
4106a27
Merge pull request #100 from rcpch/mbarton/test-workflow
mbarton Mar 13, 2024
6efe494
update chart v7.0.0
eatyourpeas Apr 1, 2024
ec9e04f
Updates dgc documentation to include tutorial for npm link
dc2007git Apr 2, 2024
8a8a40e
Fixes some formatting issues
dc2007git Apr 2, 2024
b469e51
Merge pull request #103 from rcpch/npm-link-tutorial
dc2007git Apr 2, 2024
b54ee48
move everything into `documentation` folder
anchit-chandran Apr 3, 2024
8a728aa
Merge branch 'live-holder' into merge-mkdocs
anchit-chandran Apr 3, 2024
5939992
typo in docs dockerfile
anchit-chandran Apr 3, 2024
adfbc9c
adds tmp file to track empty dir
anchit-chandran Apr 3, 2024
0d11010
rm tmp dir
anchit-chandran Apr 3, 2024
6f47913
adds env-template
anchit-chandran Apr 3, 2024
c80be84
update deprecated mkdocs tweomji
anchit-chandran Apr 3, 2024
956fd51
update set safe git dir in dockerfile mkdocs
anchit-chandran Apr 3, 2024
d40d9bd
working mkdocs container
anchit-chandran Apr 3, 2024
4b6836e
adds comment explaining why copying entire dir
anchit-chandran Apr 9, 2024
768b7cf
update swagger ui to newest version
anchit-chandran Apr 9, 2024
aeed458
rm deprecated `start-prod-server` script
anchit-chandran Apr 9, 2024
832ebb2
Update file permissions for removing containers and images
anchit-chandran Apr 9, 2024
f04bcb2
condense all requirements into single file
anchit-chandran Apr 9, 2024
f10a152
rm carbon config
anchit-chandran Apr 9, 2024
efaeb96
move hazard issue template
anchit-chandran Apr 9, 2024
be8e19f
rm documentation dockerfile
anchit-chandran Apr 9, 2024
971106c
rm `/env-template`
anchit-chandran Apr 9, 2024
0576c91
Update test command in Dockerfile
anchit-chandran Apr 9, 2024
f06fe3e
rename and update docs requirements.txt
anchit-chandran Apr 9, 2024
b43cce5
update main (and only) dockerfile for image capable of building conta…
anchit-chandran Apr 9, 2024
f10d38f
update mkdocs yml to new port mapping and rm swagger plugin
anchit-chandran Apr 9, 2024
db67925
udpate docker compose
anchit-chandran Apr 9, 2024
e4e8d9b
rm deprecated `.python-version` as expecting developers to use docker
anchit-chandran Apr 9, 2024
c432efd
rm un-needed / old files from docs repo
anchit-chandran Apr 9, 2024
7a0b8fe
Add GitHub Actions workflows for automatic issue/project management a…
anchit-chandran Apr 9, 2024
41ca550
rm old .gitignore docs
anchit-chandran Apr 9, 2024
83aae75
update repo .gitignore with site/ and .cache/
anchit-chandran Apr 9, 2024
c66c318
update test workflow requirements path
anchit-chandran Apr 9, 2024
93c6025
forgot to add `v` in workflow py action
anchit-chandran Apr 9, 2024
e6e5037
cd into docs/ directory inside mkdocs deploy workflow
anchit-chandran Apr 9, 2024
9ec0e1b
merge cd command
anchit-chandran Apr 9, 2024
edf02e2
update docu output location workflow mkdocs deploy azure
anchit-chandran Apr 9, 2024
1ec2c49
updates workflow path to new name
anchit-chandran Apr 9, 2024
bfc5643
move labels.yml up a directory
anchit-chandran Apr 9, 2024
ad07ede
minor updates to new changes api-python.md
anchit-chandran Apr 9, 2024
5eb7601
updates docker development txt
anchit-chandran Apr 9, 2024
26176dd
updates writing docs page for docker
anchit-chandran Apr 9, 2024
87a9d87
replace all instances of signal / openhealthhub with discourse link
anchit-chandran Apr 9, 2024
9d8b1d5
updates to discourse link
anchit-chandran Apr 9, 2024
774dbd8
ports across changes made in this PR https://github.com/rcpch/digital…
pacharanero Jul 9, 2024
646ee51
Fixes the error in the LaTeX equation.
pacharanero Jul 10, 2024
541e6ed
adds a reminder about docker compose version: directive
pacharanero Jul 10, 2024
ece2970
tweaks to the LaTeX equation to improve appearance
pacharanero Jul 10, 2024
92127ff
adds some more clarity in comments
pacharanero Jul 10, 2024
165a5ca
adds an admonition for the Forum
pacharanero Jul 10, 2024
8da859d
a general spruce up of this page
pacharanero Jul 10, 2024
8b8a161
adds UK90 abbreviation
pacharanero Jul 10, 2024
923cca2
Use of Down Syndrome and Turner Syndrome throughout
pacharanero Jul 10, 2024
13971f8
fix site URL and put permalinks back in
pacharanero Jul 10, 2024
8bd73fa
general update and restructure of the clinician section WIP
pacharanero Jul 10, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/ISSUE_TEMPLATE/hazard-issue-template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
name: "New Hazard Issue Template"
about: "This template helps with creation of a new Hazard"
title: "HAZARD: <hazard_name>"
labels: new-hazard-for-triage, hazard
assignees:
---
This Issue Template is based on the practices described in NHS Digital DCB0129/DCB0160 Clinical Safety Officer training.

### Description
A general description of the Hazard. Keep it short. Detail goes below.

### Cause
The upstream system Cause (can be multiple - use a numbered list) that results in the change to intended care.

### Effect
The change in the intended care pathway resulting from the Cause.

### Hazard
The *potential* for Harm to occur, even if it does not.

### Harm
An actual occurrence of a Hazard in the patient or clinical context. This is what we are assessing the **Severity** and **Likelihood** of.

### Possible Causes
An analysis of the Causes of the Hazard

-----

**Assignment**: Assign this Hazard to its Owner. Default owner is the Clinical Safety Officer @pacharanero
**Labelling**: Add labels according to Severity. Likelihood and Risk Level
**Project**: Add to the Project 'Clinical Risk Management'

* Subsequent discussion can be used to mitigate the Hazard, reducing the likelihood (or less commonly reducing the severity) of the Harm.
* If Harm is reduced then you can change the labels to reflect this and reclassify the Risk Score.
* Issues can be linked to: Issues describing specific software changes, Pull Requests or Commits fixing Issues, external links, and much more supporting documentation. Aim for a comprehensive, well-evidenced, public and open discussion on risk and safety.
85 changes: 85 additions & 0 deletions .github/labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
# This file contains definitions for the Hazard Log labels
# Reference: DCB0129: Clinical Risk Management: its Application in the Manufacture of Health IT Systems
# https://digital.nhs.uk/data-and-information/information-standards/information-standards-and-data-collections-including-extractions/publications-and-notifications/standards-and-collections/dcb0129-clinical-risk-management-its-application-in-the-manufacture-of-health-it-systems
# Implementation Guidance https://digital.nhs.uk/binaries/content/assets/legacy/pdf/0129242018impguid.pdf
# They are applied by the '.github/workflows/create-hazard-log-labels.yml' Action which is manually run


# General Utility labels
- name: "hazard"
description: "A hazard which is logged."
color: "892CBB"

- name: "new-hazard-for-triage"
description: "A new hazard which needs to be triaged for severity and likelihood, scored and assigned."
color: "892CBB"

- name: "deprecated-hazard"
description: "A hazard which is no longer considered relevant."
color: "892CBB"


# Likelihood scoring
- name: "likelihood-very-high"
description: "Certain or almost certain; highly likely to occur."
color: "C5D9F1"

- name: "likelihood-high"
description: "Not certain but very possible; reasonably expected to occur in the majority of cases."
color: "C5D9F1"

- name: "likelihood-medium"
description: "Possible."
color: "C5D9F1"

- name: "likelihood-low"
description: "Could occur but in the great majority of occasions will not."
color: "C5D9F1"

- name: "likelihood-very-low"
description: "Negligible or nearly negligible possibility of occurring."
color: "C5D9F1"


# Severity scoring
- name: "severity-catastrophic"
description: "Death, 2+. Severe injury or lifechanging incapacity, 2+."
color: "D8E4BC"

- name: "severity-major"
description: "Death, 1; Severe injury or life-changing incapacity, 1; Psychological trauma, 2+."
color: "D8E4BC"

- name: "severity-considerable"
description: "Severe injury, 1, severe incapacity, recovery expected; Significant psych. trauma, 2+."
color: "D8E4BC"

- name: "severity-significant"
description: "Minor injury, long term, 1; Significant psych. trauma, 1; Minor inj/psych trauma, 2+."
color: "D8E4BC"

- name: "severity-minor"
description: "Minor injury, short term recovery; minor psychological upset; inconvenience; negligible consequence."
color: "D8E4BC"


# Risk scoring
- name: "risk-level-1-acceptable"
description: "Acceptable, no further action required"
color: "0E8A16"

- name: "risk-level-2-acceptable"
description: "Acceptable if cost of further reduction > benefits, or further risk reduction is impractical"
color: "FBCA04"

- name: "risk-level-3-undesirable"
description: "Undesirable level of risk. Attempts should be made to eliminate the hazard or implement controls"
color: "D93F0B"

- name: "risk-level-4-mandatory-risk-elimination"
description: "Mandatory elimination of hazard or addition of controls to reduce risk to an acceptable level"
color: "ED5D40"

- name: "risk-level-5-unacceptable"
description: "Unacceptable level of risk"
color: "B60205"
6 changes: 3 additions & 3 deletions .github/workflows/all-branches-and-PRs-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ jobs:
python-version: ["3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v4 # latest as at February 2024
- uses: actions/checkout@v4 # latest as at Apr 2024

- name: Set up Python version ${{ matrix.python-version }}
uses: actions/setup-python@v5 # latest as at March 2024
uses: actions/setup-python@v5 # latest as at Apr 2024
with:
python-version: ${{ matrix.python-version }}

Expand All @@ -31,7 +31,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements/development-requirements.txt
pip install -r requirements.txt

- name: Run pytest
run: |
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/auto-add-issues-to-project.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Adds new Issues automatically to the dGC Project

on:
issues:
types:
- opened
pull_request:
types:
- opened

jobs:
add-to-project:
name: Add issue or PR to project automatically
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected] # latest as at April 2024
with:
project-url: https://github.com/orgs/rcpch/projects/5 #dGC Project
github-token: ${{ secrets.AUTO_ADD_TO_PROJECT_TOKEN }}

23 changes: 23 additions & 0 deletions .github/workflows/create-hazard-log-labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Uses https://github.com/crazy-max/ghaction-github-labeler
# Manually run the Action in the GitHub UI to add Hazard Log Labels as per the YAML file

name: create-hazard-log-labels

on:
workflow_dispatch

jobs:
labeler:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4 # Latest as at April 2024
- name: Run Labeller
if: success()
uses: crazy-max/ghaction-github-labeler@v5 # Latest as at April 2024
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
yaml-file: .github/labels.yml
skip-delete: true # won't delete your existing labels
dry-run: false
exclude:
68 changes: 68 additions & 0 deletions .github/workflows/docs-all-PRs-build-deploy-to-azure.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
# This Action builds the documentation site in mkdocs
# and pushes it to Azure from where it is deployed
# to the LIVE site https://growth.rcpch.ac.uk/
#
# Azure will also build a preview site for any branches and any PRs against `live`.

name: ALL-BRANCHES-ALL-PRs-build-and-deploy-to-azure.yml

on:
push:
branches:
- '**'
pull_request:
types: [opened, synchronize, reopened, closed]
branches:
- live
workflow_dispatch:
permissions:
contents: write
pull-requests: write # this permission is required in order to allow PR comment with staging URL
jobs:
build_and_deploy_job:
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
runs-on: ubuntu-latest
env:
ENABLE_PDF_EXPORT: 1 # Makes PDF export an option, default disabled, when building locally
ENABLE_GIT_COMMITTERS: True # Makes git-committers an option, default disabled, when building locally
name: Build and Deploy to Azure
steps:
- uses: actions/checkout@v4 # latest as at Apr 2024
with:
fetch-depth: 0 # required for git-revision and git-committers plugins to work properly in CI
submodules: true
- uses: actions/setup-python@v5 # latest as at Apr 2024
with:
python-version: '3.12'
- run: pip install -r documentation/docs-requirements.txt
- run: cd documentation && mkdocs build
- name: Upload to Azure
id: builddeploy
uses: Azure/static-web-apps-deploy@v1 # latest as at Apr 2024
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_GENTLE_GLACIER_063C32703 }}
repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for GitHub integrations (i.e. PR comments)
action: "upload"
production_branch: "live"
###### Repository/Build Configurations ######
app_location: "" # App source code path relative to repository root
api_location: "" # Api source code path relative to repository root - optional
output_location: "documentation/site" # Built app content directory, relative to app_location - optional
###### End of Repository/Build Configurations ######

# Deletes temporary deployment on Azure when PR is closed, therefore no longer needed.
close_pull_request_job:
if: github.event_name == 'pull_request' && github.event.action == 'closed'
runs-on: ubuntu-latest
name: Close Pull Request Job
steps:
- name: Close Pull Request
id: closepullrequest
uses: Azure/static-web-apps-deploy@v1 # latest as at Apr 2024
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_GENTLE_GLACIER_063C32703 }}
action: "close"




Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: on-issue-labelled-hazard-reply-with-hazard-instructions
on:
issues:
types: [labeled]

jobs:
add-comment:
if: github.event.label.name == 'hazard'
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: Add comment
uses: peter-evans/create-or-update-comment@v4 # Latest as at April 2024
with:
issue-number: ${{ github.event.issue.number }}
body: |
Thank you for opening or editing a Hazard in the Hazard Log.
### Next steps:
* Please use the Labels feature in the right sidebar area to stratify this Hazard in terms of **Likelihood** and **Severity**
* Assign the Issue to the Clinical Safety Officer for triage
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4 # latest as at March 2024
- uses: actions/checkout@v4 # latest as at April 2024

- name: Set up Python version
uses: actions/setup-python@v5 # latest as at March 2024
uses: actions/setup-python@v5 # latest as at April 2024
with:
python-version: '3.12'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4 # latest as at March 2024
- uses: actions/checkout@v4 # latest as at April 2024

- name: Set up Python version
uses: actions/setup-python@v5 # latest as at March 2024
uses: actions/setup-python@v5 # latest as at April 2024
with:
python-version: '3.12'

Expand All @@ -36,7 +36,7 @@ jobs:
run: zip release.zip ./* -r

- name: Upload artifact for deployment jobs
uses: actions/upload-artifact@v4 # latest as at March 2024
uses: actions/upload-artifact@v4 # latest as at April 2024
with:
name: python-app
path: |
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
site/
.cache/


# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
Expand Down
1 change: 0 additions & 1 deletion .python-version

This file was deleted.

15 changes: 12 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,24 @@
# Dockerfile to build image for both FastAPI server and MkDocs documentation containers
FROM python:3.12-bookworm

COPY requirements/common-requirements.txt .
# Extra packages required for Material for MkDocs plugins (dependency for git and pdf plugins)
RUN apt-get update \
&& apt install -y git python3-cffi python3-brotli libpango-1.0-0 libpangoft2-1.0-0

COPY requirements/development-requirements.txt .
# Add FastAPI Server requirements
COPY requirements.txt .
RUN pip install -r requirements.txt

RUN pip install -r development-requirements.txt
# Add MkDocs requirements
COPY documentation/docs-requirements.txt .
RUN pip install -r docs-requirements.txt

EXPOSE 8000

# Set current working directory to /app
WORKDIR /app

# Copy codebase into /app
COPY . /app

CMD ["uvicorn", "main:app", "--reload", "--host", "0.0.0.0", "--port", "8000"]
20 changes: 16 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,22 @@
# NOTE The below is the Docker Compose specification version NOT the Python version:
version: "3.8"
# This is a Docker Compose file for local development of the Digital Growth Charts Server and documentation.
# version: 3.8 (Docker Compose version is now deprecated and no longer needed)

services:
growth-api:
fastapi: # Digital Growth Charts Server
build: .
volumes:
- .:/app
ports:
- "8000:8000"
- "8000:8000" # FastAPI will be accessible at localhost:8000
restart: always

mkdocs: # Digital Growth Charts Documentation
build: .
volumes:
- .:/app # Copying entire directory contents (instead of just documentation/) because of issues related to .git directory (we are using some Git related MkDocs plugins - committers, history etc)
ports:
- 8001:8000 # MkDocs will be accessible at localhost:8001
command: >
sh -c "cd documentation && mkdocs build --config-file mkdocs.yml &&
mkdocs serve --dev-addr=0.0.0.0:8000 --config-file mkdocs.yml"
restart: always
Loading
Loading