You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
downloads the csv version of any codelists1 that are listed in codelists.txt that aren't present in codelists.json and adds an entry for them to codelists.json
checks the SHA of any previously-downloaded codelists in codelists.json against what the OpenCodelists API says the SHA is, and downloads csv and updates codelists.json for those that are different 2
deletes any files in the codelists/ directory that aren't listed in codelists.json3
What opensafely codelists update doesn't do:
update your codelists to the latest version
Many of our users are accustomed to this behaviour, but I feel like we should find out what would be most useful or intuitive to users; including assessing any side-effects of updating codelists.
Footnotes
a CodelistVersion in terms of OpenCodelists' models, since the bits of the URL specified in codelists.txt includes a version identifier. What a "codelist" means is different contexts isn't always clear↩
Once a codelist version is "published" or "in review" on OpenCodelists it cannot be definitionally changed, and is pinned to a release of the coding system; EXCEPT for the case of updated VMP IDs in dm+d (see codelist rot) where the downloadable csv version of the codelist contains the latest updated VMP codes which thus changes the SHA ↩
commonly-encountered footgun encountered by users using non-opencodelists codelists. The use of the local_codelists directory is documented but still feels surprising to many. ↩
The text was updated successfully, but these errors were encountered:
What
opensafely codelists update
does do:codelists.txt
that aren't present incodelists.json
and adds an entry for them tocodelists.json
codelists.json
against what the OpenCodelists API says the SHA is, and downloads csv and updatescodelists.json
for those that are different 2codelists/
directory that aren't listed incodelists.json
3What
opensafely codelists update
doesn't do:Many of our users are accustomed to this behaviour, but I feel like we should find out what would be most useful or intuitive to users; including assessing any side-effects of updating codelists.
Footnotes
a
CodelistVersion
in terms of OpenCodelists' models, since the bits of the URL specified in codelists.txt includes a version identifier. What a "codelist" means is different contexts isn't always clear ↩Once a codelist version is "published" or "in review" on OpenCodelists it cannot be definitionally changed, and is pinned to a release of the coding system; EXCEPT for the case of updated VMP IDs in dm+d (see codelist rot) where the downloadable csv version of the codelist contains the latest updated VMP codes which thus changes the SHA ↩
commonly-encountered footgun encountered by users using non-opencodelists codelists. The use of the
local_codelists
directory is documented but still feels surprising to many. ↩The text was updated successfully, but these errors were encountered: