Skip to content

Job request: 17735

Organisation:
Bennett Institute
Workspace:
opensafely-internal-interactive
ID:
7y7i5s2hvulgrusf

This page shows the technical details of what happened when the authorised researcher Catherine Stables requested one or more actions to be run against real patient data in the project, within a secure environment.

By cross-referencing the list of jobs with the pipeline section below, you can infer what security level various outputs were written to. Researchers can never directly view outputs marked as highly_sensitive ; they can only request that code runs against them. Outputs marked as moderately_sensitive can be viewed by an approved researcher by logging into a highly secure environment. Only outputs marked as moderately_sensitive can be requested for release to the public, via a controlled output review service.

Jobs

Pipeline

Show project.yaml
version: '3.0'

expectations:
  population_size: 1000

actions:

  generate_study_population_ethnicity_01H170FE21AVFSCDH70ET4HARZ:
    run: cohortextractor:latest generate_cohort
      --study-definition study_definition_ethnicity
      --output-dir output/01H170FE21AVFSCDH70ET4HARZ --output-format=feather
    outputs:
      highly_sensitive:
        cohort: output/01H170FE21AVFSCDH70ET4HARZ/input_ethnicity.feather

  generate_study_population_weekly_01H170FE21AVFSCDH70ET4HARZ:
    run: cohortextractor:latest generate_cohort
      --study-definition study_definition
      --param codelist_1_frequency="weekly"
      --param breakdowns=""
      --index-date_range="2023-05-08 to 2023-05-08 by week"
      --output-dir=output/01H170FE21AVFSCDH70ET4HARZ
      --output-format=feather
      --output-file=output/01H170FE21AVFSCDH70ET4HARZ/input_weekly_2023-05-08.feather
    outputs:
      highly_sensitive:
        cohort: output/01H170FE21AVFSCDH70ET4HARZ/input_weekly_2023-05-08.feather

  generate_study_population_01H170FE21AVFSCDH70ET4HARZ:
    run: cohortextractor:latest generate_cohort
      --study-definition study_definition
      --index-date-range="2019-09-01 to 2023-04-30 by month"
      --output-dir=output/01H170FE21AVFSCDH70ET4HARZ
      --output-format=feather
    outputs:
      highly_sensitive:
        cohort: output/01H170FE21AVFSCDH70ET4HARZ/input_*.feather

  join_cohorts_01H170FE21AVFSCDH70ET4HARZ:
    run: >
      cohort-joiner:v0.0.38
        --lhs output/01H170FE21AVFSCDH70ET4HARZ/input_20*.feather
        --rhs output/01H170FE21AVFSCDH70ET4HARZ/input_ethnicity.feather
        --output-dir output/01H170FE21AVFSCDH70ET4HARZ/joined
    needs: [generate_study_population_01H170FE21AVFSCDH70ET4HARZ, generate_study_population_ethnicity_01H170FE21AVFSCDH70ET4HARZ]
    outputs:
      highly_sensitive:
        cohort: output/01H170FE21AVFSCDH70ET4HARZ/joined/input_20*.feather

  generate_measures_01H170FE21AVFSCDH70ET4HARZ:
    run: >
      python:latest -m analysis.measures
        --breakdowns=sex
        --breakdowns=age
        --breakdowns=ethnicity
        --breakdowns=imd
        --breakdowns=region
        --input-dir="output/01H170FE21AVFSCDH70ET4HARZ/joined"

    needs: [join_cohorts_01H170FE21AVFSCDH70ET4HARZ]
    outputs:
      moderately_sensitive:
        measure: output/01H170FE21AVFSCDH70ET4HARZ/joined/measure_all.csv
        decile_measure: output/01H170FE21AVFSCDH70ET4HARZ/joined/measure_practice_rate_deciles.csv

  top_5_table_01H170FE21AVFSCDH70ET4HARZ:
    run: >
      python:latest python analysis/top_5.py
      --codelist-1-path="interactive_codelists/codelist_1.csv"
      --codelist-2-path="interactive_codelists/codelist_2.csv"
      --output-dir="output/01H170FE21AVFSCDH70ET4HARZ"
    needs: [generate_measures_01H170FE21AVFSCDH70ET4HARZ]
    outputs:
      moderately_sensitive:
        tables: output/01H170FE21AVFSCDH70ET4HARZ/joined/top_5*.csv

  plot_measure_01H170FE21AVFSCDH70ET4HARZ:
    run: >
      python:latest python analysis/plot_measures.py
        --breakdowns=sex
        --breakdowns=age
        --breakdowns=ethnicity
        --breakdowns=imd
        --breakdowns=region
        --output-dir output/01H170FE21AVFSCDH70ET4HARZ
    needs: [generate_measures_01H170FE21AVFSCDH70ET4HARZ]
    outputs:
      moderately_sensitive:
        measure: output/01H170FE21AVFSCDH70ET4HARZ/plot_measure*.png
        deciles: output/01H170FE21AVFSCDH70ET4HARZ/deciles_chart.png

  event_counts_01H170FE21AVFSCDH70ET4HARZ:
    run: >
      python:latest -m analysis.event_counts --input-dir="output/01H170FE21AVFSCDH70ET4HARZ" --output-dir="output/01H170FE21AVFSCDH70ET4HARZ"
    needs: [join_cohorts_01H170FE21AVFSCDH70ET4HARZ, generate_study_population_weekly_01H170FE21AVFSCDH70ET4HARZ]
    outputs:
      moderately_sensitive:
        measure: output/01H170FE21AVFSCDH70ET4HARZ/event_counts.json

  generate_report_01H170FE21AVFSCDH70ET4HARZ:
    run: >
      python:latest python analysis/render_report.py
      --output-dir="output/01H170FE21AVFSCDH70ET4HARZ"
    needs: [event_counts_01H170FE21AVFSCDH70ET4HARZ, top_5_table_01H170FE21AVFSCDH70ET4HARZ, plot_measure_01H170FE21AVFSCDH70ET4HARZ]
    outputs:
      moderately_sensitive:
        notebook: output/01H170FE21AVFSCDH70ET4HARZ/report.html

Timeline

  • Created:

  • Started:

  • Finished:

  • Runtime: 07:09:16

These timestamps are generated and stored using the UTC timezone on the TPP backend.

Job information

Status
Succeeded
Backend
TPP
Requested by
Catherine Stables
Branch
main
Force run dependencies
Yes
Git commit hash
a631b2f
Requested actions
  • run_all

Code comparison

Compare the code used in this Job Request