Skip to content

Commit

Permalink
gadotexate
Browse files Browse the repository at this point in the history
  • Loading branch information
Anna Ostropolets authored Aug 30, 2017
1 parent 9450cb0 commit 6071623
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion AMT/05_relationship_to_concept.sql
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,16 @@ insert into relationship_to_concept (concept_code_1,vocabulary_id_1,concept_id_2
select distinct d.concept_code,'AMT',concept_id_2,precedence,conversion_factor
from mapping_150817 m join drug_concept_stage d on d.concept_name=m.concept_name
;
--gadotexate
UPDATE RELATIONSHIP_TO_CONCEPT
SET CONCEPT_ID_2 = 19031583
WHERE CONCEPT_CODE_1 = '31274011000036106'
AND CONCEPT_ID_2 = 19124319;


delete relationship_to_concept
where rowid not in (
select min(rowid)
from relationship_to_concept
group by concept_code_1,concept_id_2,precedence)
;
;

0 comments on commit 6071623

Please sign in to comment.