@@ -42,8 +42,6 @@ The output code list is then used by data providers to select MELD-B cohorts.
...
@@ -42,8 +42,6 @@ The output code list is then used by data providers to select MELD-B cohorts.
| SNOMED | NHS TRUD | |
| SNOMED | NHS TRUD | |
| OPCS4 | NHS TRUD | |
| OPCS4 | NHS TRUD | |
| ATC | None | |
| ATC | None | |
| MED | None | |
| CPRD Product | None | |
MELD-B refers to various diagnostic code formats included in target datasets.
MELD-B refers to various diagnostic code formats included in target datasets.
* Read V2
* Read V2
...
@@ -57,19 +55,19 @@ MELD-B refers to various diagnostic code formats included in target datasets.
...
@@ -57,19 +55,19 @@ MELD-B refers to various diagnostic code formats included in target datasets.
## ⚙️ Setup
## ⚙️ Setup
- Delete corrupted files that cannot be read with `bash import.sh`
### Code Translation Tables
### Code Translation Tables
1. Due to the licencing of NHS TRUD coding tables, the following resources <mark>must be downloaded separately</mark>:
1. Due to the licencing of NHS TRUD resources, you<mark>MUST first [Sign Up](https://isd.digital.nhs.uk/trud/user/guest/filters/0/account/form) to NHS TRUD and accept the following licences</mark>:
2. Once all licences are accepted, get your [API Key](https://isd.digital.nhs.uk/trud/users/authenticated/filters/0/account/manage) for NHS TRUD.
2.Next, prepare the convertion Tables by saving them as `.parquet` tables.
3.Finally, run the automated extraction script, inputting your API Key to granty temporary access to the resources above. Use the command `python trud_api.py --key <INSERT KEY>` (replacing your key in the marked area).
-See "Mappings" section in process_codes_WP.ipynb to generate table with appropriate name
-The convertion Tables will be saved as `.parquet` tables in the folder `maps/processed/`.
-For reversible convertions create a duplicate table with the name reversed. However be aware this is <b>NOT ADVISED</b> and goes against NHS guidance.
-NHS TRUD defines one-way mappings and does <b>NOT ADVISE</b> reversing the mappings. If you still wish to reverse these into two-way mappings, duplicate the given `.parquet` table and reverse the filename (e.g. `read2_code_to_snomed_code.parquet` to `snomed_code_to_read2_code.parquet`)