Skip to content

Job request: 16041

Organisation:
Bennett Institute
Workspace:
opensafely-internal-interactive
ID:
xi75uyvlwshn6ff6

This page shows the technical details of what happened when 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 indicated Requested Actions with the Pipeline section below, you can infer what security level various outputs were written to. Outputs marked as highly_sensitive can never be viewed directly by a researcher; 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_01GTXT0S20DHR8DDSGDH4RBN7S:
    run: cohortextractor:latest generate_cohort
      --study-definition study_definition_ethnicity
      --param end_date="2023-02-22"
      --output-dir output/01GTXT0S20DHR8DDSGDH4RBN7S --output-format=csv.gz
    outputs:
      highly_sensitive:
        cohort: output/01GTXT0S20DHR8DDSGDH4RBN7S/input_ethnicity.csv.gz


  generate_study_population_01GTXT0S20DHR8DDSGDH4RBN7S:
    run: cohortextractor:latest generate_cohort
      --study-definition study_definition
      --param codelist_1_path="codelists/codelist_1.csv"
      --param codelist_1_type="event"
      --param codelist_2_path="codelists/codelist_2.csv"
      --param codelist_2_type="medication"
      --param codelist_1_frequency="monthly"
      --param time_value="1"
      --param time_scale="years"
      --param time_event="before"
      --param codelist_2_comparison_date="event_1_date"
      --param operator="AND"
      --param population="adults"
      --param breakdowns="sex,age,imd,region"
      --index-date-range="2022-08-26 to 2023-02-22 by month"
      --output-dir=output/01GTXT0S20DHR8DDSGDH4RBN7S
      --output-format=csv.gz
    outputs:
      highly_sensitive:
        cohort: output/01GTXT0S20DHR8DDSGDH4RBN7S/input_*.csv.gz

  join_cohorts_01GTXT0S20DHR8DDSGDH4RBN7S:
    run: >
      cohort-joiner:v0.0.38
        --lhs output/01GTXT0S20DHR8DDSGDH4RBN7S/input_20*.csv.gz
        --rhs output/01GTXT0S20DHR8DDSGDH4RBN7S/input_ethnicity.csv.gz
        --output-dir output/01GTXT0S20DHR8DDSGDH4RBN7S/joined
    needs: [generate_study_population_01GTXT0S20DHR8DDSGDH4RBN7S, generate_study_population_ethnicity_01GTXT0S20DHR8DDSGDH4RBN7S]
    outputs:
      highly_sensitive:
        cohort: output/01GTXT0S20DHR8DDSGDH4RBN7S/joined/input_20*.csv.gz

  generate_measures_01GTXT0S20DHR8DDSGDH4RBN7S:
    run: >
      python:latest python analysis/measures.py
        --breakdowns="sex,age,imd,region"
        --input_dir="output/01GTXT0S20DHR8DDSGDH4RBN7S/joined"
        --measure="med_review"

    needs: [join_cohorts_01GTXT0S20DHR8DDSGDH4RBN7S]
    outputs:
      moderately_sensitive:
        measure: output/01GTXT0S20DHR8DDSGDH4RBN7S/joined/measure*rate.csv
        decile_measure: output/01GTXT0S20DHR8DDSGDH4RBN7S/joined/measure*rate_deciles.csv

  top_5_table_01GTXT0S20DHR8DDSGDH4RBN7S:
    run: >
      python:latest python analysis/top_5.py
      --codelist-1-path="codelists/codelist_1.csv"
      --codelist-2-path="codelists/codelist_2.csv"
      --output-dir="output/01GTXT0S20DHR8DDSGDH4RBN7S"
    needs: [generate_measures_01GTXT0S20DHR8DDSGDH4RBN7S]
    outputs:
      moderately_sensitive:
        tables: output/01GTXT0S20DHR8DDSGDH4RBN7S/joined/top_5*.csv

  deciles_chart_01GTXT0S20DHR8DDSGDH4RBN7S:
    run: >
      deciles-charts:v0.0.33
        --input-files output/01GTXT0S20DHR8DDSGDH4RBN7S/joined/measure_practice_rate_deciles.csv
        --output-dir output/01GTXT0S20DHR8DDSGDH4RBN7S/joined
    config:
      show_outer_percentiles: true
      tables:
        output: true
      charts:
        output: true
    needs: [generate_measures_01GTXT0S20DHR8DDSGDH4RBN7S]
    outputs:
      moderately_sensitive:
        deciles_charts: output/01GTXT0S20DHR8DDSGDH4RBN7S/joined/deciles_*.*

  plot_measure_01GTXT0S20DHR8DDSGDH4RBN7S:
    run: >
      python:latest python analysis/plot_measures.py
        --breakdowns="sex,age,imd,region"
        --output-dir output/01GTXT0S20DHR8DDSGDH4RBN7S
    needs: [generate_measures_01GTXT0S20DHR8DDSGDH4RBN7S]
    outputs:
      moderately_sensitive:
        measure: output/01GTXT0S20DHR8DDSGDH4RBN7S/plot_measure*.png

  event_counts_01GTXT0S20DHR8DDSGDH4RBN7S:
    run: >
      python:latest python analysis/event_counts.py --input_dir="output/01GTXT0S20DHR8DDSGDH4RBN7S/joined" --output_dir="output/01GTXT0S20DHR8DDSGDH4RBN7S"
    needs: [join_cohorts_01GTXT0S20DHR8DDSGDH4RBN7S]
    outputs:
      moderately_sensitive:
        measure: output/01GTXT0S20DHR8DDSGDH4RBN7S/event_counts.json

  generate_report_01GTXT0S20DHR8DDSGDH4RBN7S:
    run: >
      python:latest python analysis/render_report.py
      --report-title="Structured Medication Review - NHS England & DMARDs"
      --population="adults"
      --breakdowns="sex,age,imd,region"
      --codelist-1-name="Structured Medication Review - NHS England"
      --codelist-2-name="DMARDs"
      --codelist-1-link="opensafely/structured-medication-review-nhs-england/5459205f"
      --codelist-2-link="opensafely/dmards/2020-06-23"
      --time-value="1"
      --time-scale="years"
      --time-event="before"
      --start-date="2022-08-26"
      --end-date="2023-02-22"
      --num-practices=1000
      --request-id="01GTXT0S20DHR8DDSGDH4RBN7S"
    needs: [event_counts_01GTXT0S20DHR8DDSGDH4RBN7S, deciles_chart_01GTXT0S20DHR8DDSGDH4RBN7S, top_5_table_01GTXT0S20DHR8DDSGDH4RBN7S, plot_measure_01GTXT0S20DHR8DDSGDH4RBN7S]
    outputs:
      moderately_sensitive:
        notebook: output/01GTXT0S20DHR8DDSGDH4RBN7S/report.html

Timeline

  • Created:

  • Started:

  • Finished:

  • Runtime: 03:35:24

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
6bad0d1
Requested actions
  • run_all

Code comparison

Compare the code used in this Job Request