Skip to content

Commit

Permalink
remove 'LOINC' from 'Has Answer' and 'Answer of' relationships
Browse files Browse the repository at this point in the history
  • Loading branch information
Timur committed Jun 17, 2020
1 parent 9b84078 commit 18f7231
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions working/manual_changes/2020/2020-06-17.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
--remove 'LOINC' from 'Has Answer' and 'Answer of' relationships [AVOF-2614]
UPDATE relationship
SET relationship_name = 'Has Answer'
WHERE relationship_id = 'Has Answer';

UPDATE relationship
SET relationship_name = 'Answer of'
WHERE relationship_id = 'Answer of';

UPDATE concept
SET concept_name = REPLACE(concept_name, ' (LOINC)', '')
WHERE concept_id IN (
45754684, -- 'Answer of'
45754683 -- 'Has Answer'
);

0 comments on commit 18f7231

Please sign in to comment.