<p>The <a href="http://cart.embl.de/" rel="noreferrer">CART</a> tool let's you upload a set of names and map them (optionally in a fuzzy way) to STITCH 4 identifiers, and then use those to map to ATC codes (using the chemicals sources <a href="http://stitch4.embl.de/cgi/show_download_page.pl" rel="noreferrer">download file</a>). It's a bit indirect, and I'm not sure what CART will do with the dosage info you mention.</p>

CC BY-SA 3.0
2017-05-16T19:33:06.700Z
2017-05-16T19:33:06.700Z
Michael Kuhn
<p><a href="https://www.drugbank.ca" rel="noreferrer">DrugBank</a> seems to have a <a href="https://www.drugbank.ca/atc" rel="noreferrer">tool to map ATC codes to drug names</a> and DrugBank IDs.</p>

<p>A quick look in the XSD schema on the <a href="https://www.drugbank.ca/releases/latest" rel="noreferrer">release page</a> suggests the complete database includes ATC codes for drugs, you could then do a fuzzy match of the BioBank names against all of DrugBank's synonyms, or match on some other data (e.g. canonicalised SMILES) if available.</p>

<p>The downside is that there may not be complete overlap between UK BioBank and DrugBank. Additionally, DrugBank is under licence for commercial use.</p>

CC BY-SA 3.0
2017-05-16T19:36:42.037Z
2017-05-16T19:36:42.037Z
Harry
<p>I'm interested working with the medication information provided by the <a href="http://biobank.ctsu.ox.ac.uk/crystal/field.cgi?id=20003" rel="noreferrer">UK Biobank</a>.  In order to get these into a usable form I would like to map them to <a href="https://en.wikipedia.org/wiki/Anatomical_Therapeutic_Chemical_Classification_System" rel="noreferrer">ATC codes</a>.  Since many of the drugs listed in the data showcase include dosage information, doing an exact string match between drug names is not very effective.  I've considered using something like <a href="https://pypi.python.org/pypi/fuzzywuzzy" rel="noreferrer">fuzzywuzzy</a> to do string matching between the medications in the data showcase and the ATC drug names but validating the matches could still be a laborious process.  Does anyone know of a tool that can match drug names to ATC codes or some other drug ontology?  If not, maybe there's a better way to do it that I haven't thought of.</p>

CC BY-SA 3.0
2017-05-16T18:44:39.473Z
Can you add a couple of examples for drug names and corresponding ATC codes (in case the link stops working)? In general, matching a non-controlled to a controlled vocabulary will always require manual checking.
Michael Schubert
<drugs><ontology>
Mapping drug names to ATC codes
# Mapping drug names to ATC codes

(Asked by: username_0 on 2017-05-16)

I'm interested working with the medication information provided by the [UK Biobank](http://biobank.ctsu.ox.ac.uk/crystal/field.cgi?id=20003). In order to get these into a usable form I would like to map them to [ATC codes](https://en.wikipedia.org/wiki/Anatomical_Therapeutic_Chemical_Classification_System). Since many of the drugs listed in the data showcase include dosage information, doing an exact string match between drug names is not very effective. I've considered using something like [fuzzywuzzy](https://pypi.python.org/pypi/fuzzywuzzy) to do string matching between the medications in the data showcase and the ATC drug names but validating the matches could still be a laborious process. Does anyone know of a tool that can match drug names to ATC codes or some other drug ontology? If not, maybe there's a better way to do it that I haven't thought of.

**Tags:** drugs, ontology
> **Comments:**
> **username_1**: Can you add a couple of examples for drug names and corresponding ATC codes (in case the link stops working)? In general, matching a non-controlled to a controlled vocabulary will always require manual checking.  

---

## 2 answers

### Answer by username_2 on 2017-05-16. Score: 5

The [CART](http://cart.embl.de/) tool let's you upload a set of names and map them (optionally in a fuzzy way) to STITCH 4 identifiers, and then use those to map to ATC codes (using the chemicals sources [download file](http://stitch4.embl.de/cgi/show_download_page.pl)). It's a bit indirect, and I'm not sure what CART will do with the dosage info you mention.


---

### Answer by username_3 on 2017-05-16. Score: 5

[DrugBank](https://www.drugbank.ca) seems to have a [tool to map ATC codes to drug names](https://www.drugbank.ca/atc) and DrugBank IDs.

A quick look in the XSD schema on the [release page](https://www.drugbank.ca/releases/latest) suggests the complete database includes ATC codes for drugs, you could then do a fuzzy match of the BioBank names against all of DrugBank's synonyms, or match on some other data (e.g. canonicalised SMILES) if available.

The downside is that there may not be complete overlap between UK BioBank and DrugBank. Additionally, DrugBank is under licence for commercial use.


---

