Skip to content

opensafely/sro-template

Repository files navigation

OpenSAFELY SRO

The aim of the OpenSAFELY SRO is to describe trends and variation in clinical activity codes to evaluate NHS service restoration during the COVID-19 pandemic.

Variation in eleven key indicators of service disruption can be seen in this report.

This template provides the means to explore variation in any clinical activity codes of interest.

OpenSAFELY Service Restoration Observatory (SRO) Template

This is a template repository for making new OpenSAFELY SRO resarch projects. It allows you to easily generate a report to describe changes in coding trends for any codelists available on OpenCodelists.

How to use this template

  1. Create or select codelist on OpenSAFELY Codelists. Instructions on how to do this can be found in this documentation.
  2. Create a new repository in the OpenSAFELY organisation and select sro-template as a template.
  3. Add your chosen codelist to your project.
  4. Specify the parameters for your project in config.py in the analysis folder. You can:
  • Set the study start and end date (in the format YYYY--MM-DD). Data for each month between these two dates will be described.
  • Choose a set of key demographic variables by which coding activity will be broken down. The available options are "sex", "age_band", "region", "imd", "ethnicity", "learning_disability" and "care_home_status".
  • Specify the title for your measure. This will be used to populate text within the report.
  • Provide the path to the codelist you added to your project in step 3.
  1. Update the --index-date-range in project.yaml to match the dates defined in step 4 in the generate_study_population and generate_study_population_practice_count actions.
  2. This code can then be run locally using the command opensafely run run_all. This will execute all actions specified in the project.yaml. For more details about how to use opensafely at the command line see here.
  3. For instructions on how to run this code against real data see this documentation.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages