opensafely-core / opencodelists

OpenCodelists is an open platform for creating and sharing codelists of clinical terms and drugs.
https://www.opencodelists.org
Other
31 stars 11 forks source link

Improve process for updating BNF SNOMED mapping #2099

Open Jongmassey opened 4 days ago

Jongmassey commented 4 days ago

The NHS publishes BNF SNOMED mapping files monthly. The updates are usually published towards the end of the month.

The date of the mapping file given on the website is different from the datestamp in the filename. This is because the filename datestamp is the date which the mapping file was generated, and the date published on the website is the date to which the mappings are up to date. There is usually a 3 month lag.

For example, at the time of writing the most recent update file is the "July 2024" update, but the mapping file is called BNF Snomed Mapping data 20240923.xlsx

The current mapping import process takes no record of the filename used in the import, and thus it is not possible to ascertain how up to date the BNF-SNOMED mapping on OpenCodelists is.

There has been a recent tech support issue querying why mappings were missing and I have memories of missed mapping updates being a problem in the past.

We should improve this such that:

We should consider:

Jongmassey commented 4 days ago

Here's some ideas based on the TRUD downloader class https://github.com/opensafely-core/opencodelists/pull/2100