Skip to content

Job request: 16533

Organisation:
DataLab
Workspace:
opensafely-internal-interactive
ID:
m4yziqvq2uhqvzym

This page shows the technical details of what happened when authorised researcher Lucy B 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_01GVZM1JMFYG87V8YQVR7AW8NX:
    run: cohortextractor:latest generate_cohort
      --study-definition study_definition_ethnicity
      --param end_date="2023-03-08"
      --output-dir output/01GVZM1JMFYG87V8YQVR7AW8NX --output-format=csv.gz
    outputs:
      highly_sensitive:
        cohort: output/01GVZM1JMFYG87V8YQVR7AW8NX/input_ethnicity.csv.gz


  generate_study_population_01GVZM1JMFYG87V8YQVR7AW8NX:
    run: cohortextractor:latest generate_cohort
      --study-definition study_definition
      --param codelist_1_path="codelists/codelist_1.csv"
      --param codelist_1_type="medication"
      --param codelist_2_path="codelists/codelist_2.csv"
      --param codelist_2_type="event"
      --param codelist_1_frequency="monthly"
      --param time_value="3"
      --param time_scale="weeks"
      --param time_event="before"
      --param codelist_2_comparison_date="end_date"
      --param operator="AND"
      --param population="all"
      --param breakdowns="sex,age,ethnicity"
      --index-date-range="2022-09-09 to 2023-03-08 by month"
      --output-dir=output/01GVZM1JMFYG87V8YQVR7AW8NX
      --output-format=csv.gz
    outputs:
      highly_sensitive:
        cohort: output/01GVZM1JMFYG87V8YQVR7AW8NX/input_*.csv.gz

  join_cohorts_01GVZM1JMFYG87V8YQVR7AW8NX:
    run: >
      cohort-joiner:v0.0.38
        --lhs output/01GVZM1JMFYG87V8YQVR7AW8NX/input_20*.csv.gz
        --rhs output/01GVZM1JMFYG87V8YQVR7AW8NX/input_ethnicity.csv.gz
        --output-dir output/01GVZM1JMFYG87V8YQVR7AW8NX/joined
    needs: [generate_study_population_01GVZM1JMFYG87V8YQVR7AW8NX, generate_study_population_ethnicity_01GVZM1JMFYG87V8YQVR7AW8NX]
    outputs:
      highly_sensitive:
        cohort: output/01GVZM1JMFYG87V8YQVR7AW8NX/joined/input_20*.csv.gz

  generate_measures_01GVZM1JMFYG87V8YQVR7AW8NX:
    run: >
      python:latest -m analysis.measures
        --breakdowns="sex,age,ethnicity"
        --input_dir="output/01GVZM1JMFYG87V8YQVR7AW8NX/joined"
        --measure="med_review"

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

  top_5_table_01GVZM1JMFYG87V8YQVR7AW8NX:
    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/01GVZM1JMFYG87V8YQVR7AW8NX"
    needs: [generate_measures_01GVZM1JMFYG87V8YQVR7AW8NX]
    outputs:
      moderately_sensitive:
        tables: output/01GVZM1JMFYG87V8YQVR7AW8NX/joined/top_5*.csv

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

  plot_measure_01GVZM1JMFYG87V8YQVR7AW8NX:
    run: >
      python:latest python analysis/plot_measures.py
        --breakdowns="sex,age,ethnicity"
        --output-dir output/01GVZM1JMFYG87V8YQVR7AW8NX
    needs: [generate_measures_01GVZM1JMFYG87V8YQVR7AW8NX]
    outputs:
      moderately_sensitive:
        measure: output/01GVZM1JMFYG87V8YQVR7AW8NX/plot_measure*.png

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

  generate_report_01GVZM1JMFYG87V8YQVR7AW8NX:
    run: >
      python:latest python analysis/render_report.py
      --output-dir="output/01GVZM1JMFYG87V8YQVR7AW8NX"
      --report-title="DMARDs & Care planning medication review simple reference set - NHS Digital"
      --population="all"
      --breakdowns="sex,age,ethnicity"
      --codelist-1-name="DMARDs"
      --codelist-2-name="Care planning medication review simple reference set - NHS Digital"
      --codelist-1-link="opensafely/dmards/2020-06-23"
      --codelist-2-link="opensafely/care-planning-medication-review-simple-reference-set-nhs-digital/61b13c39"
      --time-value="3"
      --time-scale="weeks"
      --time-event="before"
      --start-date="2022-09-09"
      --end-date="2023-03-08"
    needs: [event_counts_01GVZM1JMFYG87V8YQVR7AW8NX, deciles_chart_01GVZM1JMFYG87V8YQVR7AW8NX, top_5_table_01GVZM1JMFYG87V8YQVR7AW8NX, plot_measure_01GVZM1JMFYG87V8YQVR7AW8NX]
    outputs:
      moderately_sensitive:
        notebook: output/01GVZM1JMFYG87V8YQVR7AW8NX/report.html

Timeline

  • Created:

  • Started:

  • Finished:

  • Runtime: 04:10:49

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

Job information

Status
Succeeded
Backend
TPP
Requested by
Lucy B
Branch
main
Force run dependencies
Yes
Git commit hash
c37c9bd
Requested actions
  • run_all