Skip to content

Commit

Permalink
#316 first attempt at a join
Browse files Browse the repository at this point in the history
  • Loading branch information
ecwood committed Aug 7, 2023
1 parent d212e94 commit 4655590
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion understanding_umls.md
Original file line number Diff line number Diff line change
Expand Up @@ -742,4 +742,24 @@ I am currently trying to find where `FDA_UNII_CODE` is in the data. I know that

It looks like, per running `select * from MRSAT where SAB="DRUGBANK" limit 20;`, the name of the attribute is in the `ATN` column and the value is in the `ATV` column.

This link discusses each of the `MRREL` types: https://www.nlm.nih.gov/research/umls/knowledge_sources/metathesaurus/release/abbreviations.html.
This link discusses each of the `MRREL` types: https://www.nlm.nih.gov/research/umls/knowledge_sources/metathesaurus/release/abbreviations.html.

```
select * from MRCONSO con left join MRSAT sat on con.CODE=sat.CODE where con.SAB="DRUGBANK" limit 10;
```

CUI | LAT | TS | LUI | STT | SUI | ISPREF | AUI | SAUI | SCUI | SDUI | SAB | TTY | CODE | STR | SRL | SUPPRESS | CVF | CUI | LUI | SUI | METAUI | STYPE | CODE | ATUI | SATUI | ATN | SAB | ATV | SUPPRESS | CVF |
--|--|--|--|--|--|--|--|--|--|--|--|--|--|--|--|--|--|--|--|--|--|--|--|--|--|--|--|--|--|--
C0039601 | ENG | S | L13409149 | VO | S16395464 | Y | A27406646 | NULL | DB00624 | NULL | DRUGBANK | FSY | DB00624 | Testosteronum | 0 | N | 256 | C0039601 | L0039601 | S0092451 | A27059293 | SCUI | DB00624 | AT215745781 | NULL | SID | DRUGBANK | DB05275 | N | NULL |
C0039925 | ENG | S | L13409165 | PF | S16395565 | Y | A27406649 | NULL | DB00599 | NULL | DRUGBANK | FSY | DB00599 | Tiopentale | 0 | N | 256 | C0039925 | L0039925 | S0093293 | A27062921 | SCUI | DB00599 | AT215745786 | NULL | FDA_UNII_CODE | DRUGBANK | JI8Z5M7NA3 | N | NULL |
C0004057 | ENG | S | L13415345 | PF | S16396444 | Y | A27406659 | NULL | DB00945 | NULL | DRUGBANK | FSY | DB00945 | ácido acetilsalicílico | 0 | N | 256 | C0004057 | L0001063 | S0584084 | A27066872 | SCUI | DB00945 | AT215746200 | NULL | SID | DRUGBANK | EXPT00475 | N | NULL |
C0004057 | ENG | S | L13415345 | PF | S16396444 | Y | A27406659 | NULL | DB00945 | NULL | DRUGBANK | FSY | DB00945 | ácido acetilsalicílico | 0 | N | 256 | C0004057 | L0001063 | S0584084 | A27066872 | SCUI | DB00945 | AT215745697 | NULL | FDA_UNII_CODE | DRUGBANK | R16CO5Y76E | N | NULL |
C0006491 | ENG | S | L13413033 | PF | S16390917 | Y | A27406692 | NULL | DB00611 | NULL | DRUGBANK | FSY | DB00611 | Butorphanolum | 0 | N | 256 | C0006491 | L0006491 | S0021116 | A27064721 | SCUI | DB00611 | AT215745783 | NULL | FDA_UNII_CODE | DRUGBANK | QV897JC36D | N | NULL |
C0007735 | ENG | S | L13409541 | PF | S16391091 | Y | A27406763 | NULL | DB00456 | NULL | DRUGBANK | FSY | DB00456 | Cefalotina | 0 | N | 256 | C0007735 | L0007540 | S0023182 | A27055419 | SCUI | DB00456 | AT215745827 | NULL | SID | DRUGBANK | EXPT00946 | N | NULL |
C0061323 | ENG | P | L0061323 | VO | S16392549 | Y | A27406770 | NULL | DB00222 | NULL | DRUGBANK | FSY | DB00222 | Glimépiride | 0 | N | 256 | C0061323 | L0061323 | S1325002 | A27055170 | SCUI | DB00222 | AT215745888 | NULL | SID | DRUGBANK | APRD00381 | N | NULL |
C0064113 | ENG | S | L13414126 | PF | S16392995 | Y | A27406772 | NULL | DB01167 | NULL | DRUGBANK | FSY | DB01167 | Itraconazol | 0 | N | 256 | C0064113 | L0064113 | S0170262 | A27068928 | SCUI | DB01167 | AT215746145 | NULL | SID | DRUGBANK | APRD00040 | N | NULL |
C0064113 | ENG | S | L13414126 | PF | S16392995 | Y | A27406772 | NULL | DB01167 | NULL | DRUGBANK | FSY | DB01167 | Itraconazol | 0 | N | 256 | C0064113 | L0064113 | S0170262 | A27068928 | SCUI | DB01167 | AT215746144 | NULL | FDA_UNII_CODE | DRUGBANK | 304NUG5GF4 | N | NULL |
C0010927 | ENG | S | L13413100 | PF | S16391572 | Y | A27406779 | NULL | DB00851 | NULL | DRUGBANK | FSY | DB00851 | Dacarbazin | 0 | N | 256 | C0010927 | L0010927 | S0030020 | A27063198 | SCUI | DB00851 | AT215746222 | NULL | SID | DRUGBANK | APRD00331 | N | NULL |


For some reason, some (all?) of the names are in latin.

0 comments on commit 4655590

Please sign in to comment.