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

Disable the download-with-vmp button if a dm+d codelist is undownloadable #1741

Merged
merged 2 commits into from
Nov 15, 2023

Conversation

rebkwok
Copy link
Contributor

@rebkwok rebkwok commented Nov 15, 2023

By undownloadable, we mean that it doesn't have an identifiable code
column header in the csv_data field, so it's undownloadable for OSI, and
also can't be used to retrieve mapped VMPs. We now validate codelists created
by csv upload, so this only applies to particularly old codelists. These
can still be downloaded in their original format.

e.g. https://opencodelists.org/codelist/opensafely/methotrexate-oral/738b5e12/#full-list
contains codes in a "VMP" column, which is not one of the allowed code headers.

This will prevent users hitting the assertion error e.g.:
https://ebm-datalab.sentry.io/issues/4628776626/?alert_rule_id=1877862&alert_type=issue&notification_uuid=788df5b5-7b73-4483-b635-ebc0cab896a6&project=5248013&referrer=slack

Also adds a footnote on the "full list" tab, as suggested by @chrisjwood16, since "full list" for a dm+d codelist may not be the full full list including mapped VMPs that will be used in an OpenSAFELY project.

…able

By undownloadable, we mean that it doesn't have an identifiable code
column header in the csv_data field, so it's undownloadable for OSI, and
also can't be used to retrieve mapped VMPs. We now validate codelists created
by csv upload, so this only applies to particularly old codelists. These
can still be downloaded in their original format.

e.g. https://opencodelists.org/codelist/opensafely/methotrexate-oral/738b5e12/#full-list
contains codes in a "VMP" column, which is not one of the allowed code headers.
Since "full list" for a dm+d codelist may not be the full full list
including mapped VMPs that will be used in an OpenSAFELY project.
@rebkwok rebkwok merged commit 5749b7a into main Nov 15, 2023
6 checks passed
@rebkwok rebkwok deleted the dmd-undownloadable branch November 15, 2023 15:25
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

Successfully merging this pull request may close these issues.

2 participants