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

Dataset check fail #140

Closed
github-actions bot opened this issue Apr 29, 2024 · 1 comment
Closed

Dataset check fail #140

github-actions bot opened this issue Apr 29, 2024 · 1 comment

Comments

@github-actions
Copy link

Dataset check for opensafely/winter-pressures at 657643c:

Usage of restricted tables found:

appointments
  - analysis/appointments/dataset_definition.py:
    line 34: valid_appointments = appointments.take(

    line 35:     appointments.booked_date.is_on_or_before(appointments.start_date)

    line 60: apt = valid_appointments.take(

    line 61:     valid_appointments.booked_date.is_on_or_after(study_start_date)

    line 62: ).take(valid_appointments.booked_date.is_on_or_before(study_end_date))

    line 80:     apt = valid_appointments.take(

    line 81:         valid_appointments.booked_date.is_after(apt.booked_date)

    line 82:     ).take(valid_appointments.booked_date.is_on_or_before(study_end_date))

Usage of restricted datasets found:

appointments: https://docs.opensafely.org/study-def-variables/#appointments
- with_gp_consultations
  - analysis/study_definition_kids.py:
    line 77:     appt = patients.with_gp_consultations(

  - analysis/study_definition_kids_monthly.py:
    line 73:     appt = patients.with_gp_consultations(

@amirmehrkar @JulietUnderdown1 @LiamHart-hub @iaindillingham

@iaindillingham
Copy link
Member

opensafely-core/opensafely-cli#254 addresses this failure, so I'm closing. (It's queued behind opensafely-core/opensafely-cli#255.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant